Commit e8fda05c authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

FileManager: use localeCompare for string items

parent bc0d0ed5
......@@ -81,7 +81,11 @@ define([
if ((va = a[key]) === (vb = b[key]))
i++;
else
return ((va < vb) === rev) ? 1 : -1;
return ((
(typeof va === "string") ?
(va.localeCompare(vb) == -1) :
(va < vb)
) === rev) ? 1 : -1;
}
return 0;
});
......
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