Simplify coveralls command in travis.yml.
Separate _.uniq isSorted logic to a helper
Cleanup previous commit.