'GET /api/repositories/get_ordered_installable_revisions
:param name: the name of the Repository
:param owner: the owner of the Repository
Returns the ordered list of changeset revision hash strings that are associated with installable revisions.
As in the changelog, the list is ordered oldest to newest.'

@web.expose_api_anonymous
def get_ordered_installable_revisions(self, trans, name=None, owner=None, **kwd):

    if (name is None):
        name = kwd.get('name', None)
    if (owner is None):
        owner = kwd.get('owner', None)
    tsr_id = kwd.get('tsr_id', None)
    if (None not in [name, owner]):
        repository = repository_util.get_repository_by_name_and_owner(self.app, name, owner)
        if (repository is None):
            trans.response.status = 404
            return {'status': 'error', 'message': ('No    repository    named    %s    found    with    owner    %s' % (name, owner))}
    elif (tsr_id is not None):
        repository = repository_util.get_repository_in_tool_shed(self.app, tsr_id)
    else:
        error_message = 'Error    in    the    Tool    Shed    repositories    API    in    get_ordered_installable_revisions:    '
        error_message += 'invalid    parameters    received.'
        log.debug(error_message)
        return []
    return [revision[1] for revision in repository.installable_revisions(self.app, sort_revisions=True)]
