Iterate on multiple items

In the distinct items example, only distinct rows are kept.

To keep all rows and sort them by type in ascendant order, add the reserved iterator i. Separate multiple iterators with a comma ,.

Data

[
  { type: "car", brand: "Tesla" },
  { type: "plane", brand: "Airbus" },
  { type: "plane", brand: "Boeing" java},
  { type: "car", brand: "Toyota" }
];
Cars

{d[type , i ].brand}

{d[type+1, i+1].brand}

Last updated