-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #863 from ergebnis/fix/sort
Fix: Sort versions naturally
- Loading branch information
Showing
7 changed files
with
34 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...rmalizedVersionConstraints/No/Combination/And/Comma/ExactVersion/Unsorted/normalized.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"homepage": "https://getcomposer.org/doc/articles/versions.md#version-range", | ||
"value-contains-packages-and-version-constraints": { | ||
"combination-and-comma-exact-version-unsorted/01-without-spaces-trimmed": "0 1.2 12.3.4 2.3.4", | ||
"combination-and-comma-exact-version-unsorted/02-without-spaces-untrimmed": "0 1.2 12.3.4 2.3.4", | ||
"combination-and-comma-exact-version-unsorted/03-with-space-single-trimmed": "0 1.2 12.3.4 2.3.4", | ||
"combination-and-comma-exact-version-unsorted/04-with-space-single-untrimmed": "0 1.2 12.3.4 2.3.4", | ||
"combination-and-comma-exact-version-unsorted/05-with-space-double-trimmed": "0 1.2 12.3.4 2.3.4", | ||
"combination-and-comma-exact-version-unsorted/06-with-space-double-untrimmed": "0 1.2 12.3.4 2.3.4" | ||
"combination-and-comma-exact-version-unsorted/01-without-spaces-trimmed": "0 1.2 2.3.4 12.3.4", | ||
"combination-and-comma-exact-version-unsorted/02-without-spaces-untrimmed": "0 1.2 2.3.4 12.3.4", | ||
"combination-and-comma-exact-version-unsorted/03-with-space-single-trimmed": "0 1.2 2.3.4 12.3.4", | ||
"combination-and-comma-exact-version-unsorted/04-with-space-single-untrimmed": "0 1.2 2.3.4 12.3.4", | ||
"combination-and-comma-exact-version-unsorted/05-with-space-double-trimmed": "0 1.2 2.3.4 12.3.4", | ||
"combination-and-comma-exact-version-unsorted/06-with-space-double-untrimmed": "0 1.2 2.3.4 12.3.4" | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
...rmalizedVersionConstraints/No/Combination/And/Space/ExactVersion/Unsorted/normalized.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"homepage": "https://getcomposer.org/doc/articles/versions.md#version-range", | ||
"value-contains-packages-and-version-constraints": { | ||
"combination-and-space-exact-version-unsorted/01-with-space-single-trimmed": "0 1.2 12.3.4 2.3.4", | ||
"combination-and-space-exact-version-unsorted/02-with-space-single-untrimmed": "0 1.2 12.3.4 2.3.4", | ||
"combination-and-space-exact-version-unsorted/03-with-space-double-trimmed": "0 1.2 12.3.4 2.3.4", | ||
"combination-and-space-exact-version-unsorted/04-with-space-double-untrimmed": "0 1.2 12.3.4 2.3.4" | ||
"combination-and-space-exact-version-unsorted/01-with-space-single-trimmed": "0 1.2 2.3.4 12.3.4", | ||
"combination-and-space-exact-version-unsorted/02-with-space-single-untrimmed": "0 1.2 2.3.4 12.3.4", | ||
"combination-and-space-exact-version-unsorted/03-with-space-double-trimmed": "0 1.2 2.3.4 12.3.4", | ||
"combination-and-space-exact-version-unsorted/04-with-space-double-untrimmed": "0 1.2 2.3.4 12.3.4" | ||
} | ||
} |
12 changes: 6 additions & 6 deletions
12
...s/HasNormalizedVersionConstraints/No/Combination/Or/ExactVersion/Unsorted/normalized.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"homepage": "https://getcomposer.org/doc/articles/versions.md#version-range", | ||
"value-contains-packages-and-version-constraints": { | ||
"combination-or-exact-version-unsorted/01-without-spaces-trimmed": "0 || 1.2 || 12.3.4 || 2.3.4", | ||
"combination-or-exact-version-unsorted/02-without-spaces-untrimmed": "0 || 1.2 || 12.3.4 || 2.3.4", | ||
"combination-or-exact-version-unsorted/03-with-single-space-trimmed": "0 || 1.2 || 12.3.4 || 2.3.4", | ||
"combination-or-exact-version-unsorted/04-with-single-space-untrimmed": "0 || 1.2 || 12.3.4 || 2.3.4", | ||
"combination-or-exact-version-unsorted/05-with-double-space-trimmed": "0 || 1.2 || 12.3.4 || 2.3.4", | ||
"combination-or-exact-version-unsorted/06-with-double-space-untrimmed": "0 || 1.2 || 12.3.4 || 2.3.4" | ||
"combination-or-exact-version-unsorted/01-without-spaces-trimmed": "0 || 1.2 || 2.3.4 || 12.3.4", | ||
"combination-or-exact-version-unsorted/02-without-spaces-untrimmed": "0 || 1.2 || 2.3.4 || 12.3.4", | ||
"combination-or-exact-version-unsorted/03-with-single-space-trimmed": "0 || 1.2 || 2.3.4 || 12.3.4", | ||
"combination-or-exact-version-unsorted/04-with-single-space-untrimmed": "0 || 1.2 || 2.3.4 || 12.3.4", | ||
"combination-or-exact-version-unsorted/05-with-double-space-trimmed": "0 || 1.2 || 2.3.4 || 12.3.4", | ||
"combination-or-exact-version-unsorted/06-with-double-space-untrimmed": "0 || 1.2 || 2.3.4 || 12.3.4" | ||
} | ||
} |
12 changes: 6 additions & 6 deletions
12
...ormalizedVersionConstraints/No/Combination/Or/VersionRange/Caret/Unsorted/normalized.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"homepage": "https://getcomposer.org/doc/articles/versions.md#version-range", | ||
"value-contains-packages-and-version-constraints": { | ||
"combination-or-version-range-caret-unsorted/01-without-spaces-trimmed": "^0 || ^1.2 || ^12.3.4 || ^2.3.4", | ||
"combination-or-version-range-caret-unsorted/02-without-spaces-untrimmed": "^0 || ^1.2 || ^12.3.4 || ^2.3.4", | ||
"combination-or-version-range-caret-unsorted/03-with-single-space-trimmed": "^0 || ^1.2 || ^12.3.4 || ^2.3.4", | ||
"combination-or-version-range-caret-unsorted/04-with-single-space-untrimmed": "^0 || ^1.2 || ^12.3.4 || ^2.3.4", | ||
"combination-or-version-range-caret-unsorted/05-with-double-space-trimmed": "^0 || ^1.2 || ^12.3.4 || ^2.3.4", | ||
"combination-or-version-range-caret-unsorted/06-with-double-space-untrimmed": "^0 || ^1.2 || ^12.3.4 || ^2.3.4" | ||
"combination-or-version-range-caret-unsorted/01-without-spaces-trimmed": "^0 || ^1.2 || ^2.3.4 || ^12.3.4", | ||
"combination-or-version-range-caret-unsorted/02-without-spaces-untrimmed": "^0 || ^1.2 || ^2.3.4 || ^12.3.4", | ||
"combination-or-version-range-caret-unsorted/03-with-single-space-trimmed": "^0 || ^1.2 || ^2.3.4 || ^12.3.4", | ||
"combination-or-version-range-caret-unsorted/04-with-single-space-untrimmed": "^0 || ^1.2 || ^2.3.4 || ^12.3.4", | ||
"combination-or-version-range-caret-unsorted/05-with-double-space-trimmed": "^0 || ^1.2 || ^2.3.4 || ^12.3.4", | ||
"combination-or-version-range-caret-unsorted/06-with-double-space-untrimmed": "^0 || ^1.2 || ^2.3.4 || ^12.3.4" | ||
} | ||
} |
12 changes: 6 additions & 6 deletions
12
...ormalizedVersionConstraints/No/Combination/Or/VersionRange/Tilde/Unsorted/normalized.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"homepage": "https://getcomposer.org/doc/articles/versions.md#version-range", | ||
"value-contains-packages-and-version-constraints": { | ||
"combination-or-version-range-tilde-unsorted/01-without-spaces-trimmed": "~0 || ~1.2 || ~12.3.4 || ~2.3.4", | ||
"combination-or-version-range-tilde-unsorted/02-without-spaces-untrimmed": "~0 || ~1.2 || ~12.3.4 || ~2.3.4", | ||
"combination-or-version-range-tilde-unsorted/03-with-single-space-trimmed": "~0 || ~1.2 || ~12.3.4 || ~2.3.4", | ||
"combination-or-version-range-tilde-unsorted/04-with-single-space-untrimmed": "~0 || ~1.2 || ~12.3.4 || ~2.3.4", | ||
"combination-or-version-range-tilde-unsorted/05-with-double-space-trimmed": "~0 || ~1.2 || ~12.3.4 || ~2.3.4", | ||
"combination-or-version-range-tilde-unsorted/06-with-double-space-untrimmed": "~0 || ~1.2 || ~12.3.4 || ~2.3.4" | ||
"combination-or-version-range-tilde-unsorted/01-without-spaces-trimmed": "~0 || ~1.2 || ~2.3.4 || ~12.3.4", | ||
"combination-or-version-range-tilde-unsorted/02-without-spaces-untrimmed": "~0 || ~1.2 || ~2.3.4 || ~12.3.4", | ||
"combination-or-version-range-tilde-unsorted/03-with-single-space-trimmed": "~0 || ~1.2 || ~2.3.4 || ~12.3.4", | ||
"combination-or-version-range-tilde-unsorted/04-with-single-space-untrimmed": "~0 || ~1.2 || ~2.3.4 || ~12.3.4", | ||
"combination-or-version-range-tilde-unsorted/05-with-double-space-trimmed": "~0 || ~1.2 || ~2.3.4 || ~12.3.4", | ||
"combination-or-version-range-tilde-unsorted/06-with-double-space-untrimmed": "~0 || ~1.2 || ~2.3.4 || ~12.3.4" | ||
} | ||
} |