Fixing having and orderby