Improved listing and sorting for Documents