curses: Small sort fix