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'
- tripal_feature_load_featureloc_sequences in tripal_feature/
theme/ tripal_feature.theme.inc - Get the sequence this feature is located on
File
- tripal_feature/
theme/ tripal_feature.theme.inc, line 183
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);
}