I think there's probably an easier way to do this, using Conditional Formatting. Select your range, then click 'Conditional Formatting' then 'New Rule' then 'Use a formula to determine which cells to format'.
Enter this in the formula box:
Formula: copy to clipboard
=OR(RIGHT(A2,4)=".mil",RIGHT(A2,4)=".edu",RIGHT(A2,4)=".org",RIGHT(A2,4)=".com",RIGHT(A2,3)=".us")

Change A2 to the top cell of your range. Select a fill colour.
Add any other domain endings you need to - the format you need for each one is:
RIGHT(A2, number of characters including the dot)="dot plus ending",

Now you can sort your list by cell colour and remove the unwanted ones.

Hope that helps.