def do_sort(value, case_sensitive=False):
    if not case_sensitive:
        def sort_func(item):
            if isinstance(item, basestring):
                item = item.lower()
            return item
    else:
        sort_func = None
    return sorted(seq, key=sort_func)
cls.__new__(...) --> cls
dataset/ETHPy150Open IanLewis/kay/kay/lib/jinja2/filters.py/do_sort--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/util/arrays.py/Array.__new__