MCPcopy Create free account
hub / github.com/baidu/bigflow / sort_by

Method sort_by

bigflow_python/python/bigflow/pcollection.py:437–455  ·  view source on GitHub ↗

使用给定的key对元素排序,等同于 :func:`bigflow.transforms.sort_by(self, fn, reverse) ` Args: key (function, optional): 用于提取key的函数,与Python内置``sort()``中的 ``key`` 参数相同 reverse (bool): 若True则降序排列,否则为升序排列 Returns: PC

(self, key, reverse=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_select_elements_pobjectFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected