Commit 9798650d authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Display of files in folders does not follow alphanumberic conventions (Bug 1180775)"

parents 0b5c5125 6355a6ca
......@@ -354,8 +354,8 @@ abstract class ArtefactTypeFileBase extends ArtefactType {
// Sort folders before files; then use nat sort order.
public static function my_files_cmp($a, $b) {
return strnatcasecmp((-2 * isset($a->isparent) + ($a->artefacttype != 'folder')) . $a->title,
(-2 * isset($b->isparent) + ($b->artefacttype != 'folder')) . $b->title);
return strnatcasecmp((-2 * isset($a->isparent) + ($a->artefacttype != 'folder')) . 'a' . $a->title,
(-2 * isset($b->isparent) + ($b->artefacttype != 'folder')) . 'a' . $b->title);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment