From 05a022349cf13959d4aa160f46533ad51a06ef9f Mon Sep 17 00:00:00 2001 From: Soybean Date: Tue, 23 Apr 2024 23:10:47 +0800 Subject: [PATCH] fix(projects): fix get all tags order by version --- src/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git.ts b/src/git.ts index e4891a1..8c04d7c 100644 --- a/src/git.ts +++ b/src/git.ts @@ -7,7 +7,7 @@ import type { GitCommit, GitCommitAuthor, GithubConfig, RawGitCommit, Reference, /** Get the total git tags */ export async function getTotalGitTags() { - const tagStr = await execCommand('git', ['--no-pager', 'tag', '-l', '--sort=creatordate']); + const tagStr = await execCommand('git', ['--no-pager', 'tag', '-l', '--sort=v:refname']); const tags = tagStr.split('\n');