$array = [
0 => [
'ID' => '1',
'NAME' => '3131',
'LAST_NAME' => '132',
'SECOND_NAME' => '',
'STATUS_WORK_DAY' => 'OPENED',
],
1 => [
'ID' => '4',
'NAME' => 'Павел',
'LAST_NAME' => 'Иванов',
'SECOND_NAME' => '',
'STATUS_WORK_DAY' => 'CLOSED',
],
2 => [
'ID' => '5',
'NAME' => 'Иван',
'LAST_NAME' => 'Иванов',
'SECOND_NAME' => 'Иванович',
'STATUS_WORK_DAY' => 'CLOSED',
],
3 => [
'ID' => '17',
'NAME' => 'Автобус',
'LAST_NAME' => 'Иванов',
'SECOND_NAME' => 'Иванович',
'STATUS_WORK_DAY' => 'OPENED',
]
];
uasort($array, static fn(array $a, array $b) => $b['STATUS_WORK_DAY'] <=> $a['STATUS_WORK_DAY']);
echo '<pre>' . print_r($array, true);
Array
(
[0] => Array
(
[ID] => 1
[NAME] => 3131
[LAST_NAME] => 132
[SECOND_NAME] =>
[STATUS_WORK_DAY] => OPENED
)
[3] => Array
(
[ID] => 17
[NAME] => Автобус
[LAST_NAME] => Иванов
[SECOND_NAME] => Иванович
[STATUS_WORK_DAY] => OPENED
)
[1] => Array
(
[ID] => 4
[NAME] => Павел
[LAST_NAME] => Иванов
[SECOND_NAME] =>
[STATUS_WORK_DAY] => CLOSED
)
[2] => Array
(
[ID] => 5
[NAME] => Иван
[LAST_NAME] => Иванов
[SECOND_NAME] => Иванович
[STATUS_WORK_DAY] => CLOSED
)
)