@list= sort { @$a <=> @$b || ... secondary criterion ... || ... tertiary criterion ... } @list;