in reply to sort @array help
Oh, and also try reading things in the library, like sort.
(Yes, that was an RTFM response, and yes, you asked for it.)