fn rank(a: f64, b: f64, top: bool) -> Ordering
The order of a and b for topk (top) or bottomk; NaN ranks last for both.
a
b
topk
top
bottomk