You are here

function _elysia_cron_sort in Elysia Cron 6

Same name and namespace in other branches
  1. 5.2 elysia_cron.module \_elysia_cron_sort()
  2. 5 elysia_cron.module \_elysia_cron_sort()
  3. 6.2 elysia_cron.module \_elysia_cron_sort()
  4. 7.2 elysia_cron.module \_elysia_cron_sort()
  5. 7 elysia_cron.module \_elysia_cron_sort()
1 string reference to '_elysia_cron_sort'
elysia_cron_initialize in ./elysia_cron.module

File

./elysia_cron.module, line 854

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);
}