function tripal_feature_sort_rel_parts_by_end

2.x tripal_feature.theme.inc tripal_feature_sort_rel_parts_by_end($a, $b)
3.x tripal_feature.theme.inc tripal_feature_sort_rel_parts_by_end($a, $b)
1.x tripal_feature.module tripal_feature_sort_rel_parts_by_end($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_end'

File

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

Code

function tripal_feature_sort_rel_parts_by_end($a, $b) {
  $val = strnatcmp($b['end'], $a['end']);
  if ($val == 0) {
    return strcmp($a['type'], $b['type']);
  }
  return $val;
}