Adding sorting to DQL query reduces the number of results

Having a similar problem with “reduced number of results” when adding sorting.
The only difference between these two queries is the orderasc:year. Yet, they are producing different number of results. What could be the cause?

{
  example( func: eq(cube,"cube2022", "cube2023"), orderasc:year ) 
   @cascade  {
     cube
       year 
       country @filter( eq(code, "SWE")){
		code
      }
   }
}

1 Like