fix last sort change that slipped in with invalid syntax