Fix wrong function names.
Add a benchmark for sorting records in Bool order.
Improve the implementation of sorting in Bool order.