[REVIEW ONLY] ISPN-4416 Implement sorting and pagination for non-indexed querying

This is first take.

Jira: https://issues.jboss.org/browse/ISPN-4416