Support function attributes in orderBy