function _elysia_cron_sort in Elysia Cron 6.2
Same name and namespace in other branches
- 5.2 elysia_cron.module \_elysia_cron_sort()
- 5 elysia_cron.module \_elysia_cron_sort()
- 6 elysia_cron.module \_elysia_cron_sort()
- 7.2 elysia_cron.module \_elysia_cron_sort()
- 7 elysia_cron.module \_elysia_cron_sort()
1 string reference to '_elysia_cron_sort'
File
- ./
elysia_cron.module, line 926
Code
function _elysia_cron_sort($a, $b) {
if ((isset($a['weight']) ? $a['weight'] : 0) == (isset($b['weight']) ? $b['weight'] : 0)) {
return strcmp(isset($a['key']) ? $a['key'] : '', isset($b['key']) ? $b['key'] : '');
}
return (isset($a['weight']) ? $a['weight'] : 0) - (isset($b['weight']) ? $b['weight'] : 0);
}