You are here

function _homebox_compare_block_subject in Homebox 7.2

Same name and namespace in other branches
  1. 6.3 homebox.module \_homebox_compare_block_subject()
  2. 6 homebox.module \_homebox_compare_block_subject()
  3. 6.2 homebox.module \_homebox_compare_block_subject()
  4. 7.3 homebox.module \_homebox_compare_block_subject()

Helper function to sort blocks by subject alpha asc

File

./homebox.module, line 1193
Homebox main file, takes care of global functions settings constants, etc.

Code

function _homebox_compare_block_subject($a, $b) {
  if ($a['subject'] == $b['subject']) {
    return 0;
  }
  return $a['subject'] < $b['subject'] ? -1 : 1;
}