Unrolling Panels to a grid


I encountered a problem with unrolling panels.
I want to orient them to a grid, so it will be easy to get an overview.
And I tried two methods:

  1. Construct Point
  2. Square Grid
    With construct point the problem is that the list goes too long.
    I almost solved it with square grid, but the amount of grid can’t be easily matched with the amount of panels.

    unroll panels.gh (19.7 KB)

Appreciate any help and tips!

Try to use Shortest List.

unroll panels_re.gh (25.4 KB)

Thank you for the help, it did solve the problem!