Sorts based on ID now

Added comments