OrderClause was not getting built