You are here

function _biblio_form_sort in Bibliography Module 5

2 string references to '_biblio_form_sort'
biblio_form_types_edit in ./biblio.module
biblio_show_node in ./biblio.module

File

./biblio.module, line 1368

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