sorted classes derived from Expr