fixed sorting
Merge pull request #26 from addisonbgross/max

fixed sorting