Fix sorting for last survey