Fix sorting for examples