sort wants a -1,0,1 returning comparison function, not a boolean returning function