objArray.sort((a, b) => {a.label - b.label})
const objArray = [ {label: 'acc', value: 22}, {label: 'bcc', value: 23}, ] objArray.sort((a, b) => (b.label === a.label ? 0 : a.label > b.label ? 1 : -1));