Added table sorting directive and styling