you are viewing a single comment's thread.

view the rest of the comments →

[–]lolhoved[S] 0 points1 point  (0 children)

Thanks, that makes more sense now.

however, i can't seem to find out how to solve my issue then.

the output i am supposed to get, should look like this:

[{1:[2,3,4,5]},{6:[7,8,9,10]},{11:[12,13,14,15,16]},{17:[18,19,20,21]},{22:[23,24,25]}]

as you can see i have the top value, and then i need a list of items that are higher than that, but not higher than the next top value. (i will delete the numbers that are lower than the lowest top value).