Skip to content

Make gtcheck use a stable sort for "idbl"#2579

Merged
pd3 merged 1 commit into
samtools:developfrom
jkbonfield:gtcheck-stable
Jul 8, 2026
Merged

Make gtcheck use a stable sort for "idbl"#2579
pd3 merged 1 commit into
samtools:developfrom
jkbonfield:gtcheck-stable

Conversation

@jkbonfield

Copy link
Copy Markdown
Contributor

Qsort isn't always a stable sort. Use the array index for ties. (We could use the pointers themselves, but the struct already contains an index.)

Fixes a test issue on OpenSolaris, and probably Alpine (although it looks to have gotten lucky.)

Qsort isn't always a stable sort.  Use the array index for ties.
(We could use the pointers themselves, but the struct already contains
an index.)

Fixes a test issue on OpenSolaris, and probably Alpine (although it
looks to have gotten lucky.)

Signed-off-by: James Bonfield <jkb@sanger.ac.uk>
@pd3 pd3 merged commit 74318ad into samtools:develop Jul 8, 2026
8 checks passed
@pd3

pd3 commented Jul 8, 2026

Copy link
Copy Markdown
Member

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants