We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7779b3 commit c1dc0d9Copy full SHA for c1dc0d9
src/utils/sortRules.js
@@ -13,12 +13,13 @@ function byExport(a, b) {
13
}
14
15
function byLine(a, b) {
16
- if (
17
- isExport(a.selectors) &&
18
- isExport(b.selectors) &&
19
- a.position.start.line > b.position.start.line
20
- ) {
21
- return 1;
+ if (isExport(a.selectors) && isExport(b.selectors)) {
+ if (a.position.start.line > b.position.start.line) {
+ return 1;
+ }
+ if (a.position.start.line < b.position.start.line) {
+ return -1;
22
23
24
return 0;
25
0 commit comments