diff --git a/tempo_embeddings/visualization/jscatter.py b/tempo_embeddings/visualization/jscatter.py index 6e98b21..05236fd 100644 --- a/tempo_embeddings/visualization/jscatter.py +++ b/tempo_embeddings/visualization/jscatter.py @@ -301,7 +301,7 @@ def _category_field_filter( if field not in self._df.columns: raise ValueError(f"'{field}' does not exist in the data.") - options = self._df[field].dropna().unique().tolist() + options = sorted(self._df[field].dropna().unique().tolist()) if field in self._df.columns and 1 < len(options) <= 50: selector = widgets.SelectMultiple(