Fixes to delete, cursor and sort logic -- only one failing test in CollectionsIT now.