function biblio_form_sort in Bibliography Module 6
Same name and namespace in other branches
- 6.2 includes/biblio.admin.inc \biblio_form_sort()
- 7 includes/biblio.admin.inc \biblio_form_sort()
- 7.2 includes/biblio.admin.inc \biblio_form_sort()
1 string reference to 'biblio_form_sort'
File
- ./
biblio.admin.inc, line 1513
Code
function biblio_form_sort($a, $b) {
$a_weight = is_array($a) && isset($a['weight']) ? $a['weight'] : 0;
$b_weight = is_array($b) && isset($b['weight']) ? $b['weight'] : 0;
if ($a_weight == $b_weight) {
return 0;
}
return $a_weight < $b_weight ? -1 : 1;
}