added overloaded sort, maximum, and minimum