Implement hints for sort direction

This was done then reverted and is now done properly using knockout
Merge pull request #717 from dimagi/tiered-sort

Implement hints for sort direction