Skip to main content

TaskSortContext

type TaskSortContext = {
assigneeName?: (task: Task) => string | null | undefined;
locale?: string | readonly string[];
projectOrder?: ReadonlyMap<string, number>;
timezone?: string;
workspaceOrder?: ReadonlyMap<string, number>;
};

Properties

assigneeName()?

optional assigneeName: (task: Task) => string | null | undefined;

Resolves the display name used for assignee sorting.

Parameters

ParameterType
taskTask

Returns

string | null | undefined


locale?

optional locale: string | readonly string[];

Locale used for text comparisons. Defaults to English.


projectOrder?

optional projectOrder: ReadonlyMap<string, number>;

Project ID to its visible order.


timezone?

optional timezone: string;

Account IANA timezone. Defaults to UTC for deterministic behavior.


workspaceOrder?

optional workspaceOrder: ReadonlyMap<string, number>;

Project ID to the visible order of its workspace bucket.