Fixed sort configuration in configuration, cleaned up actions in
groupDocuments