RED-7141: Align backend text sorting with Webviewer sorting See merge request fforesight/layout-parser!115