Introduce visual sorting for documents