summaryrefslogtreecommitdiffstats
path: root/lib/private/naturalsort.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/naturalsort.php')
-rw-r--r--lib/private/naturalsort.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/naturalsort.php b/lib/private/naturalsort.php
index b6fa0ed8968..e10ce8e45e7 100644
--- a/lib/private/naturalsort.php
+++ b/lib/private/naturalsort.php
@@ -39,7 +39,8 @@ class NaturalSort {
while ($x < $length) {
$c = $t[$x];
- $m = ($c === '.' || ($c >= '0' && $c <= '9'));
+ // only include the dot in strings
+ $m = ((!$n && $c === '.') || ($c >= '0' && $c <= '9'));
if ($m !== $n) {
// next chunk
$y++;