There is a quirk (almost a bug?) in FreeBSD's qsort where it will switch to insertsort for the whole array under certain conditions, which we hit in production given how our data was arranged.
(I think this was the check) https://github.com/freebsd/freebsd-src/blob/main/lib/libc/st...