I think that sortBy doesn't need a function, you can just say _.sortBy validKeys and it will do alphabetic ascending. (I think, but my memory is fuzzy)