例如,可以用col2对JArray进行排序吗?
[
{
"col1": "thiscol",
"col2": "thisval"
},
{
"col1": "thiscol2",
"col2": "thisval2"
},
{
"col1": "thiscol3",
"col2": "thisval3"
}
]
Run Code Online (Sandbox Code Playgroud)
如果将其转换为数组是唯一的解决方案,那么我该怎么做呢?