Mike refactor table sort

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

filtering?