Shuffle structure field collection

If tried to shuffle a collection of structure field entries, like so

$entries = $page->structurefield()->toStructure()->shuffle();

However, this doesn’t work, but shouldn’t it? Suppose, I could use the good ol’ yaml() method and php shuffle method as a workaround but would prefer to use the toStructure() method. Any ideas?

Shuffling structure collections will finally work in Kirby 2.3.1. :slight_smile:

1 Like