I have an array that looks like this:
[
  1 => [
    'title' => 'a title',
    'status' => 'active'
  ],
  2 => [
    'title' => 'a title 2',
    'status' => 'disabled'
  ],
  1 => [
    'title' => 'a title 3',
    'status' => 'not active'
  ]
]
My goal is to group/sort them by status order 1. active 2. not active 3. disabled
So basically like so:
[
  1 => [
    'title' => 'a title',
    'status' => 'active'
  ],
  2 => [
    'title' => 'a title 3',
    'status' => 'not active'
  ]
  3 => [
    'title' => 'a title 2',
    'status' => 'disabled'
  ]
]
I know I'll probably need to write a loop and execute some array functions but my concern is how can I determine the order of the statuses, which is prio over the other.
 
    