Fix sorting by ep num