in reply to How do I sort a list of strings?

Use the sort operator sort defaults to a textual comparison unless something else is put in the sort block see How do I sort a list of numbers?
@sorted=sort @unsorted;