You are here

function _photos_cmpt in Album Photos 6.2

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

File

./photos.module, line 999

Code

function _photos_cmpt($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;
}