You are here

function cc::sort_lists in Constant Contact 6.3

Same name and namespace in other branches
  1. 7.3 class.cc.php \cc::sort_lists()

* sort the lists based on the SortOrder field * * @access private

File

./class.cc.php, line 355

Class

cc
@file

Code

function sort_lists($a, $b) {
  if (!isset($a['SortOrder'], $b['SortOrder']) || $a['SortOrder'] == $b['SortOrder']) {
    return 0;
  }
  return $a['SortOrder'] < $b['SortOrder'] ? -1 : 1;
}