Partitioning a List into sub-lists and placing them directly into a Grid orders sub-lists across rows. Is there an idiot-proof built-in function or a simple algorithm for ordering sub-lists down columns for an unknown number of list elements with an unknown end-user selected n of sub-list lengths?
This outputs ordered across rows:
list = Range[8]
n = 3
Grid[Partition[list, UpTo[n]]]
Out:
1 2 3
4 5 6
7 8
The goal is ordered down columns:
1 4 7
2 5 8
3 6



UpTocan be used like that. For thePartition[list, UpTo[n]]there is also a resource function NearEqualPartition. For OP: For usingFlattenlike a transposition for ragged lists see particularly the answer by WReach here https://mathematica.stackexchange.com/questions/119/flatten-command-matrix-as-second-argument – userrandrand Nov 27 '22 at 14:08