1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Tools: Fixed git-changelog

This commit is contained in:
Laurent Cozic 2023-06-06 16:43:46 +01:00
parent 30671e7a20
commit bdbb362644

View File

@ -83,7 +83,12 @@ async function gitLog(sinceTag: string) {
async function gitTags() {
const lines: string = await execCommand('git tag --sort=committerdate');
return lines.split('\n').map(l => l.trim()).filter(l => !!l);
const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });
return lines
.split('\n')
.map(l => l.trim())
.filter(l => !!l)
.sort((a, b) => collator.compare(a, b));
}
function platformFromTag(tagName: string): Platform {