📅  最后修改于: 2022-03-11 15:03:18.132000             🧑  作者: Mango
objs.sort((a,b) => {
if (a.value == "your value") return parseInt("-" + objs.indexOf(a)) // moves up based on its index
})