added sort doc caching
added sorted support for the limited cursor