Fix sorting arrow direction