How to iterate over list of associative arrays grouped by a specific key values?
Let's say I have a list of associative arrays.I want to iterate over this list by groups. First by category, then, in a nested loop, by subcategory.aalist = {
[
"Category" => "A",
"Subcategory" => "aa",
"Value" => "123"
]
,
[
"Category" => "A",
"Subcategory" => "aa",
"Value" => "124"
]
,
[
"Category" => "A",
"Subcategory" => "bb",
"Value" => "125"
]
,
[
"Category" =
...