Add special sort-handling functions for bitvectors