Sorting a Column based on a repeating pattern?

Hi Everyone,

I am trying to sort a column based on a repeating criteria. There are other columns in my data but as long as the other row info moves with the sorting it does not matter. I just need it to repeat:

Number:
1
2
3
1
2
3
1
2
3

Is there any way to do this?

Hi @tschmied

Please find a possible solution below based on the -Rank- node:

image

If I got it right, the workflow preserves the other rows info order as needed, for instance:

  • Initial unsorted dummy example data:

image

  • The result:

image

As you can see on the highlighted ones, the order of ones is preserved given their initial Row Index (1, 6, 7, 11).

20210927 Pikairos Sorting a Column based on a repeating pattern.knwf (29.8 KB)

Hope this helps.

Best

Ael

4 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.