Fix backoffice documents collection sorting
Some fixes
Merge pull request #986 from inthause/documents

Some fixes