fix boolean sort in ascending order