Sorts based on ID now

Added comments
Merge pull request #25 from sammyshj/master

Sorts based on ID now