Add sort feature to tables.