Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7646)  |  Call(7646)  |  Derive(0)  |  Import(0)
L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*;
cmp(x, y) -> -1, 0, 1

src/m/e/META-SHARE-HEAD/lib/python2.7/site-packages/django/contrib/gis/geos/mutable_list.py   META-SHARE(Download)
    def sort(self, cmp=cmp, key=None, reverse=False):
        "Standard list sort method"
        if key:
            temp = [(key(v),v) for v in self]
            temp.sort(cmp=cmp, key=lambda x: x[0], reverse=reverse)
            self[:] = [v[1] for v in temp]
        else:
            temp = list(self)
            temp.sort(cmp=cmp, reverse=reverse)

src/d/j/django-cms-On-App-Engine-HEAD/django-cms/django/contrib/gis/geos/mutable_list.py   django-cms-On-App-Engine(Download)
    def sort(self, cmp=cmp, key=None, reverse=False):
        "Standard list sort method"
        if key:
            temp = [(key(v),v) for v in self]
            temp.sort(cmp=cmp, key=lambda x: x[0], reverse=reverse)
            self[:] = [v[1] for v in temp]
        else:
            temp = list(self)
            temp.sort(cmp=cmp, reverse=reverse)

src/d/j/django-cms-On-App-Engine-HEAD/BlankAppEngineDjangoStarter/django/contrib/gis/geos/mutable_list.py   django-cms-On-App-Engine(Download)
    def sort(self, cmp=cmp, key=None, reverse=False):
        "Standard list sort method"
        if key:
            temp = [(key(v),v) for v in self]
            temp.sort(cmp=cmp, key=lambda x: x[0], reverse=reverse)
            self[:] = [v[1] for v in temp]
        else:
            temp = list(self)
            temp.sort(cmp=cmp, reverse=reverse)

src/r/o/rooibos-HEAD/django/contrib/gis/geos/mutable_list.py   rooibos(Download)
    def sort(self, cmp=cmp, key=None, reverse=False):
        "Standard list sort method"
        if key:
            temp = [(key(v),v) for v in self]
            temp.sort(cmp=cmp, key=lambda x: x[0], reverse=reverse)
            self[:] = [v[1] for v in temp]
        else:
            temp = list(self)
            temp.sort(cmp=cmp, reverse=reverse)

src/c/o/CollabQ-HEAD/vendor/django/contrib/gis/geos/mutable_list.py   CollabQ(Download)
    def sort(self, cmp=cmp, key=None, reverse=False):
        "Standard list sort method"
        if key:
            temp = [(key(v),v) for v in self]
            temp.sort(cmp=cmp, key=lambda x: x[0], reverse=reverse)
            self[:] = [v[1] for v in temp]
        else:
            temp = list(self)
            temp.sort(cmp=cmp, reverse=reverse)

src/c/u/curso_python_dga_11-HEAD/servicios_web/gae/django-guestbook/src/django/contrib/gis/geos/mutable_list.py   curso_python_dga_11(Download)
    def sort(self, cmp=cmp, key=None, reverse=False):
        "Standard list sort method"
        if key:
            temp = [(key(v),v) for v in self]
            temp.sort(cmp=cmp, key=lambda x: x[0], reverse=reverse)
            self[:] = [v[1] for v in temp]
        else:
            temp = list(self)
            temp.sort(cmp=cmp, reverse=reverse)

src/b/i/biosqlweb-HEAD/app/lib/python/webob/compat.py   biosqlweb(Download)
try:
    # This will succeed on Python 2.4, and fail on Python 2.3.
 
    [].sort(key=lambda: None)
 
    def sorted(iterable, cmp=None, key=None, reverse=False):
        l = list(iterable)
        l.sort(cmp=cmp, key=key, reverse=reverse)

src/d/j/Django-draftable-1.4.6/django/contrib/gis/geos/mutable_list.py   Django-draftable(Download)
    def sort(self, cmp=cmp, key=None, reverse=False):
        "Standard list sort method"
        if key:
            temp = [(key(v),v) for v in self]
            temp.sort(cmp=cmp, key=lambda x: x[0], reverse=reverse)
            self[:] = [v[1] for v in temp]
        else:
            temp = list(self)
            temp.sort(cmp=cmp, reverse=reverse)

src/t/h/theyworkforyou-HEAD/googleappengine/electionsurvey/django/contrib/gis/geos/mutable_list.py   theyworkforyou(Download)
    def sort(self, cmp=cmp, key=None, reverse=False):
        "Standard list sort method"
        if key:
            temp = [(key(v),v) for v in self]
            temp.sort(cmp=cmp, key=lambda x: x[0], reverse=reverse)
            self[:] = [v[1] for v in temp]
        else:
            temp = list(self)
            temp.sort(cmp=cmp, reverse=reverse)

src/t/u/tubechaser-HEAD/website/TubeChaser/django/contrib/gis/geos/mutable_list.py   tubechaser(Download)
    def sort(self, cmp=cmp, key=None, reverse=False):
        "Standard list sort method"
        if key:
            temp = [(key(v),v) for v in self]
            temp.sort(cmp=cmp, key=lambda x: x[0], reverse=reverse)
            self[:] = [v[1] for v in temp]
        else:
            temp = list(self)
            temp.sort(cmp=cmp, reverse=reverse)

Previous  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next