amend heap sort logic
Merge branch 'master' of https://github.com/dianping/cat
Merge pull request #602 from leonindy/master

fix a heap sort bug