我有以下 jason 对象数组,这个数组是使用信号器动态更新的,所以我必须在数组更新后对其进行排列:
var Con= [
{
"Name": "Killy",
"Team": "1"
}, {
"Name": "jack",
"Team": "2"
},{
"Name": "Noor",
"Team": "1"
},{
"Name": "Ramez",
"Team": "1"
},{
"Name": "wala",
"Team": "2"
}, {
"Name": "Sozan",
"Team": "3"
}];
如何仅使用 JavaScript 按团队对名称进行排序?