Added sorting methods
Merge pull request #10 from Mflynn37211/sort_functions

Added sorting methods