Fix sorting order and direction in the UI