Documented the `{ overlap: true }` option and improved the sorting.

`getNext` now returns the closest ending sequence.