The name to sort by can be the field name OR a function, so pass a function that does a lower-case conversion.
var sorted = _.sortBy(array, function (i) { return i.name.toLowerCase(); });
should do the trick.
More Related Contents:
- Is it worth using parallel OpenMp sort with an array of 4000 elements? [closed]
- How to perform case-insensitive sorting array of string in JavaScript?
- How to use Thrust to sort the rows of a matrix?
- what is natural ordering when we talk about sorting?
- How do I sort one vector based on values of another
- Why is the minimalist, example Haskell quicksort not a “true” quicksort?
- What is the purpose of shuffling and sorting phase in the reducer in Map Reduce Programming?
- case-insensitive list sorting, without lowercasing the result?
- using lodash .groupBy. how to add your own keys for grouped output?
- What is a better way to sort by a 5 star rating?
- Underscore: sortBy() based on multiple attributes
- Associatively sorting a table by value in Lua
- Code an Excel VBA sort with a custom order and a value containing commas
- is it possible to do quicksort of a list with only one passing?
- jqGrid with Custom sorttype
- Radix Sort for Negative Integers
- Why does Rust not implement total ordering via the Ord trait for f64 and f32?
- Sorting an Array of JavaScript Objects a Specific Order (using existing function)
- How do I sort an array of structs by multiple values?
- SQL Sorting and hyphens
- What is the shortest way to simply sort an array of structs by (arbitrary) field names?
- pandas groupby sort descending order
- Sort a Table[] in Lua
- OpenGL depth sorting
- How to define (and name) the corresponding safe term comparison predicates in ISO Prolog?
- Is sort in Ruby stable?
- Filtering object properties based on value
- Sorting on the last field of a line
- In php how does usort() function works
- Java Sorting: sort an array of objects by property, object not allowed to use Comparable