1 views_ui.admin.inc _views_weight_sort($a, $b)

File

core/modules/views_ui/views_ui.admin.inc, line 4704
Provides the Views' administrative interface.

Code

function _views_weight_sort($a, $b) {
  if ($a['weight'] != $b['weight']) {
    return $a['weight'] < $b['weight'] ? -1 : 1;
  }
  if ($a['title'] != $b['title']) {
    return $a['title'] < $b['title'] ? -1 : 1;
  }

  return 0;
}