Fix document sorting on dashboard and on document index.