Python Xarray, sort by index or dimension?
<p>Is there a <code>sort_index</code> or <code>sort_by_dimension</code> method of some kind in <code>xarray</code>, much like <code>pandas.DataFrame.sort_index()</code>, where I can sort a <code>xarray.DataArray</code> object by one of its dimensions? In terms of usage, I'm thinking of something like <code>data_array.sort(dim="dimension_name")</code>.</p>