Skip to content

Commit ce7a0e3

Browse files
committed
refactor: . Sort lines by key, for readability
1 parent 606654c commit ce7a0e3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Layout/QueryLayoutOptions.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ export class QueryLayoutOptions {
2424
*/
2525
export function parseQueryShowHideOptions(queryLayoutOptions: QueryLayoutOptions, option: string, hide: boolean) {
2626
const optionMap = new Map<string, keyof QueryLayoutOptions>([
27-
['tree', 'hideTree'],
28-
['task count', 'hideTaskCount'],
27+
// Alphabetical order
2928
['backlink', 'hideBacklinks'],
30-
['postpone button', 'hidePostponeButton'],
3129
['edit button', 'hideEditButton'],
30+
['postpone button', 'hidePostponeButton'],
31+
['task count', 'hideTaskCount'],
32+
['tree', 'hideTree'],
3233
['urgency', 'hideUrgency'],
3334
]);
3435

0 commit comments

Comments
 (0)