Home
last modified time | relevance | path

Searched refs:sort_func (Results 1 – 5 of 5) sorted by relevance

/external/libmojo/third_party/jinja2/
Dfilters.py217 def sort_func(item): function
223 return sorted(value.items(), key=sort_func)
255 def sort_func(item): function
260 sort_func = None
263 def sort_func(item, processor=sort_func or (lambda x: x)): function
265 return sorted(value, key=sort_func, reverse=reverse)
/external/toolchain-utils/bestflags/
Dgenetic_algorithm.py257 sort_func = lambda task: task.GetTestResult() function
258 retained_tasks = sorted(gen_tasks, key=sort_func)[:target_len]
/external/protobuf/python/google/protobuf/pyext/
Drepeated_composite_container.cc381 PyObject* sort_func = PyDict_GetItemString(kwds, "sort_function"); in Sort() local
382 if (sort_func != NULL) { in Sort()
385 PyDict_SetItemString(kwds, "cmp", sort_func); in Sort()
Drepeated_scalar_container.cc606 PyObject* sort_func = PyDict_GetItemString(kwds, "sort_function"); in Sort() local
607 if (sort_func != NULL) { in Sort()
610 if (PyDict_SetItemString(kwds, "cmp", sort_func) == -1) in Sort()
/external/v8/tools/
Dcallstats.py432 sort_func = sort_asc_func if args.sort == "asc" else sort_desc_func
434 L = [item for item in sorted(S.items(), key=sort_func)