made  sort1 work
Added comments.
Added more comments
Merge pull request #2 from Sparx-Robotics-1126/sort1

made  sort1 work