rank-compare-approximations (npm): Compare two functions with respect to their ranking/sorting accuracy on an input set
Keywords: sort distance|rank distance|poset