I have an array of this type:
Array ( [15709] => stdClass Object ( [pid] => 15709 [channel_ID] => 51 [date] => 2016-03-21 00:30:00 [program_info] => Х/ф "Стелла" ) [15710] => stdClass Object ( [pid] => 15710 [channel_ID] => 51 [date] => 2016-03-21 02:20:00 [program_info] => Х/ф "Часы доблести" ) [15711] => stdClass Object ( [pid] => 15711 [channel_ID] => 51 [date] => 2016-03-21 06:15:00 [program_info] => Фильм-концерт "Хичкок. Концерт в магазине" ) ) I need to sort it by the [date] field so that all the elements whose field [date] greater than 05:00:00 would go first, that is, the array looked like this:
Array ( [15711] => stdClass Object ( [pid] => 15711 [channel_ID] => 51 [date] => 2016-03-21 06:15:00 [program_info] => Фильм-концерт "Хичкок. Концерт в магазине" ) [15709] => stdClass Object ( [pid] => 15709 [channel_ID] => 51 [date] => 2016-03-21 00:30:00 [program_info] => Х/ф "Стелла") [15710] => stdClass Object ( [pid] => 15710 [channel_ID] => 51 [date] => 2016-03-21 02:20:00 [program_info] => Х/ф "Часы доблести" ) )