Fix reorder cursor to handle empty cursors too
Only reorder if 'select all' is performed