blosc2.LazyArray.sort#

abstract LazyArray.sort(order: str | list[str] | None = None) LazyArray#

Return a sorted LazyArray.

This is only valid for LazyArrays with structured dtypes.

Parameters:

order (str, list of str, optional) – Specifies which fields to compare first, second, etc. A single field can be specified as a string. Not all fields need to be specified, only the ones by which the array is to be sorted.

Returns:

out – A sorted LazyArray.

Return type:

LazyArray