sort by table header directive, sorts table rows on click