Answers for "sorting json array by key in angular 9"

0

sorting json array by key in angular 9

list.sort((a, b) => (a.color > b.color) ? 1 : (a.color === b.color) ? ((a.size > b.size) ? 1 : -1) : -1 )
Posted by: Guest on July-05-2021

Code answers related to "sorting json array by key in angular 9"

Code answers related to "Javascript"

Browse Popular Code Answers by Language