Introduced hierarchical sorting.

DONE:
- hierarchical sorting on a regular widgetless table.
- fixed the widgets when you're not using hierarchical sorting.

TODO: 
- Make the css classes used to define the hierarchy customisable.
- Test/define/implement how the widgets work when you're using the hierarchy.