TEIID-2455 fix for unrelated sort of view