my @theSortedList = sort { $a <=> $b } @theList;