arr.sort(function (a, b) {
if (a.level) {
return 1
} else {
return -1
}
})
arr.sort(function (a, b) {
if (a.level) {
return 1
} else {
return -1
}
})