1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00

Fix final sorting condition in ‘sortDefsChildren’

This commit is contained in:
GreLI
2019-07-13 21:43:36 +03:00
parent 8d0b9b8bf8
commit 4dfbd76d59
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ exports.fn = function(item) {
if (lengthComparison !== 0) {
return lengthComparison;
}
return a.elem > b.elem;
return a.elem != b.elem ? a.elem > b.elem ? -1 : 1 : 0;
});
}