changed sort to work better possibly. also fix global and semicolons
Merge pull request #12 from MauriceButler/master

changed sort to work better possibly. also fix global and semicolons