Skip to content

Commit c0d03db

Browse files
committed
Merge branch 'qistoph-numsort'
2 parents 40d8b42 + 0365f96 commit c0d03db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/operations/SeqUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ const SeqUtils = {
249249
}
250250
}
251251

252-
return 0;
252+
return a.localeCompare(b);
253253
},
254254

255255
};

test/tests/operations/SeqUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import TestRegister from "../../TestRegister.js";
1010
TestRegister.addTests([
1111
{
1212
name: "SeqUtils - Numeric sort photos",
13-
input: "Photo-1.jpg\nPhoto-4.jpg\nPhoto-2.jpg\nPhoto-3.jpg\n",
14-
expectedOutput: "Photo-1.jpg\nPhoto-2.jpg\nPhoto-3.jpg\nPhoto-4.jpg\n",
13+
input: "Photo-1.jpg\nPhoto-4.jpg\nPhoto-2.jpg\nPhoto-3.jpg",
14+
expectedOutput: "Photo-1.jpg\nPhoto-2.jpg\nPhoto-3.jpg\nPhoto-4.jpg",
1515
recipeConfig: [
1616
{
1717
"op": "Sort",

0 commit comments

Comments
 (0)