You are here

function _photos_cmp in Album Photos 6.2

1 string reference to '_photos_cmp'
photos_upload_info in ./photos.module

File

./photos.module, line 990

Code

function _photos_cmp($a, $b) {
  if ($a['w'] == $b['w']) {
    if ($a['h'] != $b['h']) {
      return $a['h'] > $b['h'] ? -1 : 1;
    }
    return 0;
  }
  return $a['w'] > $b['w'] ? -1 : 1;
}