Skip to content

Commit b055d88

Browse files
p-linnaneclaude
andauthored
fix: sort RC builds by rcNumber within same version (#210)
RCs were all given rank (1, 0) regardless of rcNumber, causing RC 2 to sort incorrectly relative to RC when falling back to build number string comparison. Signed-off-by: Patrick Linnane <patrick@linnane.io> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ba24eed commit b055d88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/macOSdbKit/Models/Release.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ extension Release: Comparable {
214214

215215
private var prereleaseRank: (Int, Int) {
216216
if isBeta { return (0, betaNumber ?? 0) }
217-
if isRC { return (1, 0) }
217+
if isRC { return (1, rcNumber ?? 0) }
218218
return (2, 0)
219219
}
220220
}

0 commit comments

Comments
 (0)