So I used _.sortBy
function but I'm experiencing weird sorting behavior. Seems like it 'collects' all words starting with lower case alphabets, sorts them, then 'collects' all words starting with upper case alphabets, sorts them, then 're-groups' those two sorts and displays them. e.g., so if I have something like:
[{prop:a},{prop:z},{prop:D},{prop:X},{prop:g},{prop:G},{prop:S}]
the sorted result will look something like:
[{prop:a},{prop:g},{prop:z},{prop:D},{prop:G},{prop:S},{prop:X}]
Any insight on this would be really appreciated!