Searched refs:sort_func (Results 1 – 3 of 3) sorted by relevance
548 PyObject* sort_func = PyDict_GetItemString(kwds, "sort_function"); in Sort() local549 if (sort_func != NULL) { in Sort()552 PyDict_SetItemString(kwds, "cmp", sort_func); in Sort()
607 PyObject* sort_func = PyDict_GetItemString(kwds, "sort_function"); in Sort() local608 if (sort_func != NULL) { in Sort()611 if (PyDict_SetItemString(kwds, "cmp", sort_func) == -1) in Sort()
377 sort_func = sort_asc_func if args.sort == "asc" else sort_desc_func379 L = [item for item in sorted(S.items(), key=sort_func)