How to sort this array by pos
attribute even though keys (name, store_id, product etc.
)
[Attributes] => Array
(
[name] => Array
(
[pos] => 30
)
[store_id] => Array
(
[pos] => 10
)
[product] => Array
(
[pos] => 20
)
)
Edit: performance is important of course.