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:
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user