takes input and sorts it by value
Merge pull request #1 from strawhatalexander/prefixes

takes input and sorts it by value