Fix so that column sorting link works correctly