     func build() -> Sort
 }
 
-public class Sort: Codable {
+public struct Sort {
     
     private static let ORDER = "order"
     private static let MODE = "mode"

        self.fieldTypeisArray = self.mode != nil
    }
    
    
    private struct CodingKeys: CodingKey {
        var stringValue: String

                ]]
    }
    
    
}

extension Sort: Codable {
    public init(from decoder: Decoder) throws {
        let container = try decoder.singleValueContainer()
        let dic = try container.decode([String: CodableValue].self)
        let item = dic.first!
