Add debug output for sort, and associated testbench.