---
cases:
  - note: aggregates/sort
    query: data.generated.p = x
    modules:
      - |
        package generated

        p := x if {
        	sort([4, 3, 2, 1], x)
        }
    data: { }
    want_result:
      - x:
          - 1
          - 2
          - 3
          - 4
