How can I sort the following array:
$members = [
0 => [
"name" => "Steve",
"privilege" => "admin"
],
1 => [
"name" => "Lisa",
"privilege" => "editor"
],
2 => [
"name" => "Eric",
"privilege" => "owner"
]
]
Based on the order of this array:
$privileges = ['owner', 'admin', 'editor'];
So I end upp with the first array with the items listed Eric, Steve, Lisa