Add ordering field to the generic provider API, close #28