     var name: String {
         switch self {
         case .alphabetical:
-            return "alphabetical"
+            return "alpha"
         case .price:
             return "price"
         case .new:


extension QueryRepresentable {
    
    func sort(_ boxSort: BoxSorting) throws -> Query<T> {
        return try self.sort(boxSort.field, boxSort.direction)
    }
}


            box.group("all") { all in
                
                all.get() { request in
                    let boxes = try Box.query().sort(request.sort()).all()
                    return try Node.array(boxes.map(createNode(forBox:)))
                }
                
