Used min/max, no need to sort now.
Merge pull request #15 from Circle-of-Hackers/sort_update_1

Used min/max, no need to sort now.