There are 3 string variables
public var userLoginId : String? public var searchString : String? public var tableName : String?
I have a dic
Dictionaries are unordered
Dictionaries
Since JSON is a String you can have a sorted JSON. From iOS 11 and macOS 10.13 there is a new option for JSONSerialization for sorting keys that you can use:
JSON
String
JSONSerialization
JSONSerialization.data(withJSONObject: json, options: [.sortedKeys])