DOC: Change documentation to reflect the new API

As it turns out the docstring had an error, it is now solved. The
problem was that the order was not being kept. The generator now
conserves this order.