how many sort calls per .sort() js code example Example: sort array of objects javascript list.sort((a, b) => (a.color > b.color) ? 1 : -1)