Searched refs:sort_func (Results 1 – 5 of 5) sorted by relevance
/external/libmojo/third_party/jinja2/ |
D | filters.py | 217 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/ |
D | genetic_algorithm.py | 257 sort_func = lambda task: task.GetTestResult() function 258 retained_tasks = sorted(gen_tasks, key=sort_func)[:target_len]
|
/external/protobuf/python/google/protobuf/pyext/ |
D | repeated_composite_container.cc | 381 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()
|
D | repeated_scalar_container.cc | 606 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/ |
D | callstats.py | 432 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)
|