需求
需求是改一下list数组中的排序。
场景
没用unset处理之前
{
"errno": 0,
"data": {
"total": 4,
"list": [
{
"id": "xxx",
"pluginname": "xxx",
"m2": "xxx",
"version": "xxx",
"status": "xxx",
"mtime": "xxxx",
"ctime": "xxx",
"pluginid": "xxxx",
"ltime": "xxx",
"deleted": "xxx"
}
......
]
},
"errmsg": "",
"timestamp": xxx
}
将元素移到数组末尾,unset原元素后数组结构就成这样了
{
"errno": 0,
"data": {
"total": 4,