Sorting array in reverse domain

admin

Administrator
Staff member
Hi, just some questions.

Does anyone have any idea on how to sort a file containing email addresses in reverse domain.

i.e.
for a list of
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->

into

<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->

Just the algorithm should be sufficient, no need to include the code..i'll try to figure it out myself..

Cheerss...
 
Back
Top