Fix issue where table was not sorted alphabetically