pymaid.CatmaidNeuronList.sort_values

CatmaidNeuronList.sort_values(key: str, ascending: bool = False)

Sort neurons by given key.

Needs to be an attribute of all neurons: for example name. Also works with custom attributes.