Skip to content

Commit

Permalink
jsdoc: Document RandomField class
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae committed Oct 5, 2024
1 parent 6bd5130 commit abeb3cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Query/Filter/RandomField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import type { Comparator } from '../Sort/Sorter';
import type { Task } from '../../Task/Task';
import { FilterInstructionsBasedField } from './FilterInstructionsBasedField';

/**
* Sort tasks in a stable, random order.
*
* The sort order changes each day.
*/
export class RandomField extends FilterInstructionsBasedField {
public fieldName(): string {
return 'random';
Expand Down

0 comments on commit abeb3cf

Please sign in to comment.