def _sorted_from_obj(self, data):
        # data is a list of the type generated by parse_qsl
        if isinstance(data, list):
            items = data
        else:
            # complex objects:
            try:
                # django.http.QueryDict,
                items = [(i[0], j) for i in data.lists() for j in i[1]]
            except __HOLE__:
                # webob.multidict.MultiDict
                # werkzeug.datastructures.MultiDict
                items = iteritems(data)

        return sorted(items, key=lambda p: p[0])
dataset/ETHPy150Open circuits/circuits/circuits/web/parsers/querystring.py/QueryStringParser._sorted_from_obj