check expressions against a sort