Skip to content

Commit 000c7f3

Browse files
committed
Support sortby
1 parent 89a9c0b commit 000c7f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cf_xarray/accessor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ def _get_measure(da: Union[DataArray, Dataset], key: str) -> List[str]:
270270
"dims_or_levels": (_get_axis_coord,), # reset_index
271271
"coord": (_get_axis_coord_single,),
272272
"group": (_get_axis_coord_single,),
273+
"variables": (_get_axis_coord,), # sortby
273274
"weights": (_get_measure_variable,), # type: ignore
274275
}
275276

0 commit comments

Comments
 (0)