Issue
Overview
The Document Id field doesn't support sorting, as it orders it by the sysid in the field.
As per documentation, a document ID field created to reference any record on any table.
https://docs.servicenow.com/csh?topicname=t_CreatingADocumentIDField.html&version=latest