few more fixes for the boolean sort