I have a List whose contents are Map with string keys and values if type String or Long.
[{
"name": "Abc",
"id": 1522047548000
},
{
"name": "Xyz",
"id": 1522048221000
}]
How can I sort the list
- based on id which is long
- based on name which is String