diff --git a/src/sparcscore/ml/datasets.py b/src/sparcscore/ml/datasets.py index b4f78a5a..ff0aced3 100644 --- a/src/sparcscore/ml/datasets.py +++ b/src/sparcscore/ml/datasets.py @@ -341,8 +341,7 @@ def __init__(self, self.dir_list = dir_list self.target_col = target_col - index_list = index_list.sort() - self.index_list = index_list + self.index_list = index_list.sort() self.hours = hours self.root_dir = root_dir self.transform = transform