main/util-linux: fix numeric sorting in irqtop
Numeric sorting is completely wrong in irqtop
(8) (of main/util-linux
). It's an upstream bug. The numeric sorting functions use wrong contract. I guess the author was confused by C++ sorting that uses std::less
. In contrast qsort
(3) requires three way result (like that of strcmp
(3) or perl's <=>
spaceship operator).