new sorting code
Merge pull request #4 from jeffdavidthompson/newbramch

new sorting code