DOCS-900 near sort order