more bug fixing regarding ORDER BY statement handling
fixed issue 21: problems with multi-variable functions in WHERE