Use usort() instead of uasort() to not maintain keys

This commit is contained in:
kondou 2013-09-06 06:44:49 +02:00
parent 85e41d9500
commit 226c205631

View file

@ -49,6 +49,6 @@ function cmp($a, $b) {
}
return ($a['name'] < $b['name']) ? -1 : 1;
}
uasort($files, 'cmp');
usort($files, 'cmp');
OC_JSON::success(array('data' => $files));