We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
updatedAt
1 parent 72a1d5d commit f5f50e6Copy full SHA for f5f50e6
src/renderer/store/snippets.ts
@@ -77,7 +77,7 @@ export const useSnippetStore = defineStore('snippets', {
77
return i
78
})
79
80
- this.all.sort((a, b) => (a.createdAt > b.createdAt ? -1 : 1))
+ this.all.sort((a, b) => (a.updatedAt > b.updatedAt ? -1 : 1))
81
},
82
async getSnippetsByFolderIds (ids: string[]) {
83
const snippets: SnippetWithFolder[] = []
@@ -94,7 +94,7 @@ export const useSnippetStore = defineStore('snippets', {
94
95
this.snippets = snippets
96
.filter(i => !i.isDeleted)
97
- .sort((a, b) => (a.createdAt > b.createdAt ? -1 : 1))
+ .sort((a, b) => (a.updatedAt > b.updatedAt ? -1 : 1))
98
99
async getSnippetsById (id: string) {
100
if (id) {
0 commit comments