Check that the sort actually changed
Merge pull request #2491 from rashidkpc/fix/doc-table-double-request

Fix double _msearch call in doc_table