Mike refactor table sort



<!---
@huboard:{"milestone_order":126.0,"order":3.375,"custom_state":"ready"}
-->

Because the header repeat is not simply enable or disabled, the number tells the interval at which we repeat the header, a boolean is not enough information to work with