function farm_livestock_weight_log_array_sort_date in farmOS 7
Helper function to sort an array of logs by timestamp
1 string reference to 'farm_livestock_weight_log_array_sort_date'
- farm_livestock_weight_group_report in modules/
farm/ farm_livestock/ farm_livestock_weight/ farm_livestock_weight.module - Generate Animal Weight Group Report
File
- modules/
farm/ farm_livestock/ farm_livestock_weight/ farm_livestock_weight.module, line 815 - Farm livestock weight module.
Code
function farm_livestock_weight_log_array_sort_date($a, $b) {
return strtotime($a['date']) - strtotime($b['date']);
}