You are here

function _biblio_contributor_sort in Bibliography Module 6.2

Same name and namespace in other branches
  1. 7 includes/biblio.contributors.inc \_biblio_contributor_sort()
  2. 7.2 includes/biblio.contributors.inc \_biblio_contributor_sort()
1 call to _biblio_contributor_sort()
_biblio_save_contributors in includes/biblio.contributors.inc
Save contributors to the database.

File

includes/biblio.contributors.inc, line 393
Functions related to contributors in Drupal biblio module.

Code

function _biblio_contributor_sort(&$authors) {
  foreach ($authors as $key => $author) {
    if (!isset($author['rank']) || empty($author['rank'])) {
      $authors[$key]['rank'] = $key;
    }
  }
  usort($authors, '_biblio_contributor_usort');
}