Lodash.js - indexBy() function

A simple Lodash.js example of the indexBy() function, which groups and sorts the collection according to the key values.