php - uasort bad performance sorting an array of object with custom order -
i have sort array of objects called "contents", made this: "articles" => array:106 [▼ 0 => array:5 [▼ "id" => 467823568 "title" => "my tittle" "data" => "my data" "category" => 23 "order" => 2 ] 1 => array:5 [▼ "id" => 46782356433 "title" => "my tittle 2" "data" => "my data 2" "category" => 25 "order" => 1 ] ... ] the order defined in 2 array, category_o , order_o made this: "category_o" => array:21 [▼ 0 => 25 1 => 95 2 => 135 3 => 72 4 => 4 5 => 23 6 => 7 7 => 803 ... ] i have articles sorted property "category" custom order specified in category_o array, , second sort property "order" other custom order specified in...