in reply to Re: Complicated, multi-level array sorting
in thread Complicated, multi-level array sorting

More efficient is to use just one sort:
@arr2 = sort {$$a {cat} cmp $$b {cat} || $$a {name} cmp $$b {name} || $$a {rating} cmp $$b {rating}} @arr1;

Then you would only spend time comparing names and ratings if the 'cat's are identical.

Abigail