def getPagingParameters(self, params, defaultSortField=None,
                            defaultSortDir=SortDir.ASCENDING):
        offset = int(params.get('offset', 0))
        limit = int(params.get('limit', 50))
        sortdir = int(params.get('sortdir', defaultSortDir))

        if 'sort' in params:
            sort = [(params['sort'].strip(), sortdir)]
        elif isinstance(defaultSortField, six.string_types):
            sort = [(defaultSortField, sortdir)]
        else:
            sort = None

        return limit, offset, sort
Pass the URL parameters into this function if the request is for a
dataset/ETHPy150Open girder/girder/girder/api/rest.py/Resource.getPagingParameters