You are here

function _biblio_contributor_usort in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 includes/biblio.contributors.inc \_biblio_contributor_usort()
  2. 7.2 includes/biblio.contributors.inc \_biblio_contributor_usort()

Parameters

$a:

$b:

Return value

int

1 string reference to '_biblio_contributor_usort'
_biblio_contributor_sort in includes/biblio.contributors.inc

File

includes/biblio.contributors.inc, line 387

Code

function _biblio_contributor_usort($a, $b) {
  if (empty($a['name'])) {
    return 1;
  }
  if (empty($b['name'])) {
    return -1;
  }
  return $a['rank'] < $b['rank'] ? -1 : 1;
}