@Miles introduced clickable headers to reorder result set
@Miles Added additional coverage