Quick actions

cmd+k|ctrl+k

Navigation

Languages

Sort Arr Of Obj

Snippet info

Language

JavaScript

Visibility

public

Author

ubaidillah.hf

Created

2022-09-24T05:25:33.89867Z

Updated

2022-09-24T05:25:33.89867Z

const ceks = [
    {
    'qty':2
    },
    {
    'qty':1
    },
    {
    'qty':3
    },
]

ceks.sort((a,b) => a.qty - b.qty);
console.log("Hello World! =>", ceks);
INFO