@@ -264,26 +264,6 @@ export abstract class Field {
264
264
return false ;
265
265
}
266
266
267
- /**
268
- * Return a function to get a list of a task's group names, for use in grouping by this field's value.
269
- *
270
- * See {@link supportsGrouping} for what to do, to enable support of grouping in a
271
- * particular {@link Field} implementation.
272
- */
273
- public grouper ( ) : GrouperFunction {
274
- throw Error ( `grouper() unimplemented for ${ this . fieldNameSingular ( ) } ` ) ;
275
- }
276
-
277
- /**
278
- * Create a {@link Grouper} object for grouping tasks by this field's value.
279
- *
280
- * For now, parsing of `group by` lines is currently done in {@link FilterParser.parseGrouper()}.
281
- * Later, this will probably be moved to the {@link Field} classes.
282
- */
283
- public createGrouper ( reverse : boolean ) : Grouper {
284
- return new Grouper ( this . fieldNameSingular ( ) , this . grouper ( ) , reverse ) ;
285
- }
286
-
287
267
/**
288
268
* Parse a 'group by' line and return a {@link Grouper} object.
289
269
*
@@ -365,6 +345,26 @@ export abstract class Field {
365
345
return new RegExp ( `^group by ${ this . fieldNameSingularEscaped ( ) } ( reverse)?$` ) ;
366
346
}
367
347
348
+ /**
349
+ * Return a function to get a list of a task's group names, for use in grouping by this field's value.
350
+ *
351
+ * See {@link supportsGrouping} for what to do, to enable support of grouping in a
352
+ * particular {@link Field} implementation.
353
+ */
354
+ public grouper ( ) : GrouperFunction {
355
+ throw Error ( `grouper() unimplemented for ${ this . fieldNameSingular ( ) } ` ) ;
356
+ }
357
+
358
+ /**
359
+ * Create a {@link Grouper} object for grouping tasks by this field's value.
360
+ *
361
+ * For now, parsing of `group by` lines is currently done in {@link FilterParser.parseGrouper()}.
362
+ * Later, this will probably be moved to the {@link Field} classes.
363
+ */
364
+ public createGrouper ( reverse : boolean ) : Grouper {
365
+ return new Grouper ( this . fieldNameSingular ( ) , this . grouper ( ) , reverse ) ;
366
+ }
367
+
368
368
/**
369
369
* Create a {@link Grouper} object for grouping tasks by this field's value,
370
370
* in the standard/normal group order for this field.
0 commit comments