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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
sorted(iterable, cmp=None, key=None, reverse=False) --> new sorted list

src/e/l/Elixir-0.7.1/elixir/entity.py   Elixir(Download)
'''
 
from py23compat import sorted
 
import sys
    properties = [(name, attr) for name, attr in cls.__dict__.iteritems()
                               if isinstance(attr, Property)]
    sorted_props = sorted(base_props + properties,
                          key=lambda i: i[1]._counter)
    for name, prop in sorted_props: