my @things = ( ... ); # some list, whatever @things = sort @things;