Fix sorting on many many