function _homebox_compare_block_subject in Homebox 6.2
Same name and namespace in other branches
- 6.3 homebox.module \_homebox_compare_block_subject()
- 6 homebox.module \_homebox_compare_block_subject()
- 7.3 homebox.module \_homebox_compare_block_subject()
- 7.2 homebox.module \_homebox_compare_block_subject()
Helper function to sort blocks by subject alpha asc
File
- ./
homebox.module, line 1195 - 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;
}