[PATCH OLK-6.6 5/7] lib/xarray: introduce a new helper xas_get_order