gitmyhub

order-by-example

TypeScript ★ 0 updated 26d ago

Build a comparator from example orderings. Give it lists of items in the order you want, and it returns a `compare` function you can hand to `Array.prototype.sort`.

No plain-English explanation yet — one is being written right now. Check back in a minute.