added support for sorting of tables.

Jira: https://issues.jboss.org/browse/DTGOV-93