fix php 5.6 issues: static usage, sort callback must be public