Fix sorting for unified collection