Skip to content

Commit

Permalink
fix: sort order
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed May 22, 2024
1 parent 52d2620 commit 18331f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commandpalette/widgets/utils/getSubPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function getSubPlugins() {
searchTitlePluginTitles
.map(title => $tw.wiki.getTiddler(title)?.fields)
.filter(item => item !== undefined)
.sort((a, b) => (a.priority as number | undefined ?? 0) - (b.priority as number | undefined ?? 0))
.sort((a, b) => (b.priority as number | undefined ?? 0) - (a.priority as number | undefined ?? 0))
.forEach((tiddlerField) => {
try {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access, security/detect-non-literal-require, security-node/detect-non-literal-require-calls
Expand Down

0 comments on commit 18331f8

Please sign in to comment.