Sorting by boolean is tricky. 0 comes before 1