Added compression to sorting of cursors