New provider

> "We can't use a cursor in the query, so we need to do the sorting ourselves"