[
1 => ['id' => 1, 'sort' => 1],
3 => ['id' => 3, 'sort' => 3],
2 => ['id' => 2, 'sort' => 2],
]
How do I sort it so that it's re-ordered using the inner 'sort' key? Desired result:
[
1 => ['id' => 1, 'sort' => 1],
2 => ['id' => 2, 'sort' => 2],
3 => ['id' => 3, 'sort' => 3],
]