1
0
mirror of synced 2024-11-15 02:37:40 +01:00

Merge branch 'numsort' of https://github.com/qistoph/CyberChef into qistoph-numsort

This commit is contained in:
n1474335 2017-10-13 09:33:09 +00:00
commit 0365f96678
2 changed files with 3 additions and 3 deletions

View File

@ -249,7 +249,7 @@ const SeqUtils = {
}
}
return 0;
return a.localeCompare(b);
},
};

View File

@ -10,8 +10,8 @@ import TestRegister from "../../TestRegister.js";
TestRegister.addTests([
{
name: "SeqUtils - Numeric sort photos",
input: "Photo-1.jpg\nPhoto-4.jpg\nPhoto-2.jpg\nPhoto-3.jpg\n",
expectedOutput: "Photo-1.jpg\nPhoto-2.jpg\nPhoto-3.jpg\nPhoto-4.jpg\n",
input: "Photo-1.jpg\nPhoto-4.jpg\nPhoto-2.jpg\nPhoto-3.jpg",
expectedOutput: "Photo-1.jpg\nPhoto-2.jpg\nPhoto-3.jpg\nPhoto-4.jpg",
recipeConfig: [
{
"op": "Sort",