diff --git a/src/rules/order.js b/src/rules/order.js index b232032dcf..827beb9238 100644 --- a/src/rules/order.js +++ b/src/rules/order.js @@ -248,17 +248,13 @@ function getSorter(ascending) { const A = importA.split('/'); const B = importB.split('/'); - const a = A.length; - const b = B.length; if (A < B) { result = -1; } else if (A > B) { result = 1; - } else if (a !== b) { - result = a < b ? -1 : 1; - } - + } + return result * multiplier; }; }