We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25e6357 commit 14bc77cCopy full SHA for 14bc77c
1 file changed
packages/fresh/src/fs_routes.ts
@@ -247,7 +247,7 @@ export function sortRoutePaths(a: string, b: string) {
247
if (scoreA === scoreB) {
248
if (charA !== charB) {
249
// TODO: Do we need localeSort here or is this good enough?
250
- return charA < charB ? 0 : 1;
+ return charA < charB ? -1 : 1;
251
}
252
continue;
253
@@ -257,7 +257,7 @@ export function sortRoutePaths(a: string, b: string) {
257
258
259
260
261
262
263
// If we're at the end of A or B, then we assume that the longer
0 commit comments