v8.1.0
Simple, expected, and deterministic best-match sorting of an array in JavaScript
Source code on GitHub