Fix sorting problem for RTTs