fix boolean sort in ascending order

See