diff --git a/laydi/dataset.py b/laydi/dataset.py index 00591eb..25f6d34 100644 --- a/laydi/dataset.py +++ b/laydi/dataset.py @@ -298,7 +298,8 @@ class Dataset(object): """ ds = self.copy() - indices = ds.get_indices(dim, idents) + indices = array_sort(ds.get_indices(dim, idents)) + idents = ds.get_identifiers(dim, indices=indices) if not idents: raise ValueError("No of identifers from: \n%s \nfound in %s" %(str(idents), ds._name))