Sort-DNS

This will take a list of DNS domains and sort them properly with the TLD being the most significant and the left-most subdomain being the least significant.  I reverse the order of the domain, sort the array, then reverse the order again.

Example:

Output: