I am looking for a way to group and sort children by category BUT need the translated category value for sorting in the correct language. I am currently using the t() helper to get the translated category.
In the end I need the original category to do filtering and the translated for displaying. Maybe I need to add the translated value to the collection too? Not sure.
Thanks, as always that worked very well. Now things have changed a bit, I don’t get the translation from the language file bit a structure field. Instead from using:
Too few arguments to function Kirby\Toolkit\F::{closure}(), 1 passed in /Users/agloeckner/Library/Mobile Documents/com~apple~CloudDocs/web/wassersparfuchs.de/kirby/src/Toolkit/Collection.php on line 1028 and exactly 2 expected