Lodash sortBy multiple keys not working as expected

Viewed 24

I want to sort an object array with using multiple keys. Please find the working example here.

var temp = _.sortBy(array, ['Chemical', 'LocName']);

in the sorted array Tetrachloroethene appears before cis-1,2-Dichloroethene, why its sorting T before c and how can I correct it.

0 Answers
Related