Provides a shorthand for sorting arrays of complex objects by a string property
Name of property to use, supports dot notation
let arr = [{a: 'Apple', b: 123}, {a: 'Carrot', b: 789}, {a: 'banana', b: 456}];arr.sort(caseInsensitiveSort('a')); Copy
let arr = [{a: 'Apple', b: 123}, {a: 'Carrot', b: 789}, {a: 'banana', b: 456}];arr.sort(caseInsensitiveSort('a'));
Provides a shorthand for sorting arrays of complex objects by a string property