Add sorting for some columns in tables.