import itertools


def _flip(items, ncol):
    """The items in `items` are listed in column order and displayed across
    `ncol` columns. Re-order the list so that the items will be displayed
    across rows rather than down columns."""

    return list(itertools.chain(*[items[i::ncol] for i in range(ncol)]))