diff --git a/src/settings/file_watch.ts b/src/settings/file_watch.ts index 3f07923..5746333 100644 --- a/src/settings/file_watch.ts +++ b/src/settings/file_watch.ts @@ -6,6 +6,7 @@ import { parseSnippets, parseSnippetVariables, type SnippetVariables } from "../ import differenceImplementation from "set.prototype.difference"; // @ts-ignore import intersectionImplementation from "set.prototype.intersection"; +import { sortSnippets } from "src/snippets/sort"; const difference: (self: Set, other: Set) => Set = differenceImplementation; const intersection: (self: Set, other: Set) => Set = intersectionImplementation; @@ -170,5 +171,5 @@ export async function getSnippetsFromFiles( } } - return snippets; + return sortSnippets(snippets); }