private boolean optimizeSort ( OClass iSchemaClass ) { OIndexCursor cursor = getOptimizedSortCursor ( iSchemaClass ) ; if ( cursor != null ) { fetchValuesFromIndexCursor ( cursor ) ; return true ; } return false ; }
Use index to order documents by provided fields .