You are here

function cc::sort_lists in Constant Contact 7.3

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

Sort the lists based on the SortOrder field

@access private

File

./class.cc.php, line 349
Constant Contact PHP Class

Class

cc
@file Constant Contact PHP Class

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;
}