function tripal_feature_sort_locations

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

Used to sort the feature locs by start position

Parameters

$a: One featureloc record (as an object)

$b: The other featureloc record (as an object)

Return value

Which feature location comes first

Related topics

1 string reference to 'tripal_feature_sort_locations'
tripal_feature_load_featurelocs in tripal_feature/theme/tripal_feature.theme.inc
Load the locations for a given feature

File

tripal_feature/theme/tripal_feature.theme.inc, line 273

Code

function tripal_feature_sort_locations($a, $b) {
  return strnatcmp($a->fmin, $b->fmin);
}