I want to sort array in php based on some conditions here is the array
$array = [
[ "a" => 4, "b" => 8, "c" => 1 ],
[ "a" => 9, "b" => 4, "c" => 0 ],
[ "a" => -9, "b" => -4, "c" => 1 ],
];
if c=1,it should come first,how can i sort the array like this? I need to add some additional conditions too..i think the same logic will helps me to add multiple conditions