Sort documents by name