Skip to content

Commit 855d8bb

Browse files
Sort scopes numeric
1 parent 139f0ea commit 855d8bb

File tree

6 files changed

+39
-39
lines changed

6 files changed

+39
-39
lines changed
Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
const foo = function bar() {};
1+
export default function() {}
22
---
33

44
[Content] =
5-
[Domain] = 0:12-0:29
6-
>-----------------<
7-
0| const foo = function bar() {};
8-
9-
[Removal] = 0:11-0:29
10-
>------------------<
11-
0| const foo = function bar() {};
12-
13-
[Leading delimiter] = 0:11-0:12
14-
>-<
15-
0| const foo = function bar() {};
5+
[Removal] =
6+
[Domain] = 0:0-0:28
7+
>----------------------------<
8+
0| export default function() {}
169

1710
[Insertion delimiter] = "\n\n"
Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
const foo = function *bar() {};
1+
export default function *() {}
22
---
33

44
[Content] =
5-
[Domain] = 0:12-0:30
6-
>------------------<
7-
0| const foo = function *bar() {};
8-
9-
[Removal] = 0:11-0:30
10-
>-------------------<
11-
0| const foo = function *bar() {};
12-
13-
[Leading delimiter] = 0:11-0:12
14-
>-<
15-
0| const foo = function *bar() {};
5+
[Removal] =
6+
[Domain] = 0:0-0:30
7+
>------------------------------<
8+
0| export default function *() {}
169

1710
[Insertion delimiter] = "\n\n"
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
export default function() {}
1+
export default () => {};
22
---
33

44
[Content] =
55
[Removal] =
6-
[Domain] = 0:0-0:28
7-
>----------------------------<
8-
0| export default function() {}
6+
[Domain] = 0:0-0:24
7+
>------------------------<
8+
0| export default () => {};
99

1010
[Insertion delimiter] = "\n\n"
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
export default function *() {}
1+
const foo = function bar() {};
22
---
33

44
[Content] =
5-
[Removal] =
6-
[Domain] = 0:0-0:30
7-
>------------------------------<
8-
0| export default function *() {}
5+
[Domain] = 0:12-0:29
6+
>-----------------<
7+
0| const foo = function bar() {};
8+
9+
[Removal] = 0:11-0:29
10+
>------------------<
11+
0| const foo = function bar() {};
12+
13+
[Leading delimiter] = 0:11-0:12
14+
>-<
15+
0| const foo = function bar() {};
916

1017
[Insertion delimiter] = "\n\n"
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
export default () => {};
1+
const foo = function *bar() {};
22
---
33

44
[Content] =
5-
[Removal] =
6-
[Domain] = 0:0-0:24
7-
>------------------------<
8-
0| export default () => {};
5+
[Domain] = 0:12-0:30
6+
>------------------<
7+
0| const foo = function *bar() {};
8+
9+
[Removal] = 0:11-0:30
10+
>-------------------<
11+
0| const foo = function *bar() {};
12+
13+
[Leading delimiter] = 0:11-0:12
14+
>-<
15+
0| const foo = function *bar() {};
916

1017
[Insertion delimiter] = "\n\n"

packages/cursorless-org-docs/src/docs/components/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function nameComparator(
6060
a: { name: string },
6161
b: { name: string },
6262
): number {
63-
return a.name.localeCompare(b.name);
63+
return a.name.localeCompare(b.name, undefined, { numeric: true });
6464
}
6565

6666
export function isScopeInternal(scope: ScopeTypeType): boolean {

0 commit comments

Comments
 (0)