function tripal_feature_sort_rel_parts_by_start

2.x tripal_feature.theme.inc tripal_feature_sort_rel_parts_by_start($a, $b)
3.x tripal_feature.theme.inc tripal_feature_sort_rel_parts_by_start($a, $b)
1.x tripal_feature.module tripal_feature_sort_rel_parts_by_start($a, $b)

used to sort the list of relationship parts by start position

Related topics

1 string reference to 'tripal_feature_sort_rel_parts_by_start'

File

tripal_feature/tripal_feature.module, line 1688
@todo Add file header description

Code

function tripal_feature_sort_rel_parts_by_start($a, $b) {
  foreach ($a as $type_name => $details) {
    $astart = $a[$type_name]['start'];
    break;
  }
  foreach ($b as $type_name => $details) {
    $bstart = $b[$type_name]['start'];
    break;
  }
  return strnatcmp($astart, $bstart);
}