Lodash.js - invert() function

A simple Lodash.js example of the invert() function, we can change the places of the keys and the values. In the end the collection is sorted ascending.