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 d0357ed commit 8a00df9Copy full SHA for 8a00df9
src/Query/Filter/Field.ts
@@ -311,7 +311,16 @@ export abstract class Field {
311
return this.createGrouper(true);
312
}
313
314
- protected defaultComparator: Comparator = (_a: Task, _b: Task) => {
+ protected defaultComparator: Comparator = (a: Task, b: Task) => {
315
+ const groupA = this.grouper()(a);
316
+ const groupB = this.grouper()(b);
317
+
318
+ for (let i = 0; i < groupA.length; i++) {
319
+ // The containers are guaranteed to be identical sizes since we are calling the same grouper
320
+ return groupA[i].localeCompare(groupB[i], undefined, { numeric: true });
321
+ }
322
323
+ // identical if we reach here
324
return 0;
325
};
326
0 commit comments