[svn r21540] FS#306 - Dropbox: Sorting by titles is to be done using natural order.

skala
Ivan Tcholakov 16 years ago
parent bbd225437f
commit f63f2bb43a
  1. 2
      main/dropbox/dropbox_class.inc.php

@ -432,6 +432,8 @@ class Dropbox_Person
}
if ($sort == 'filesize') { //filesize is not a string, so we use other comparison technique
return $aval<$bval ? -1 : 1;
} elseif ($sort == 'title') { // natural order for sorting titles is more "human-friendly"
return api_strnatcmp($aval, $bval);
} else {
return api_strcasecmp($aval, $bval);
}

Loading…
Cancel
Save