Misc styling fixes

Aren't sort functions supposed to return `-1,0,1` rather than a boolean?