logo       

sort with special order: msg#00342

perl-beginners

Subject: sort with special order

Hi,

When I got a word list, I want it to be sorted with special order.
for example, I got this array:

("dog","is","a","there");

I want the sorted result is:

("there","is","a","dog");

How to code it? Thank you.

--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
http://learn.perl.org/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise