Fix sorting issue.