diff --git a/exporter_ng.py b/exporter_ng.py index dad9d00..c174ae2 100644 --- a/exporter_ng.py +++ b/exporter_ng.py @@ -349,7 +349,8 @@ class SlackExporter: """Ładuje kanały""" channels_data = self.api.get_channels() # channels_data = json.load(open("out/channel_list.json", "r", encoding="utf-8")) - return [SlackChannel(ch, self.users) for ch in channels_data] + channels = [SlackChannel(ch, self.users) for ch in channels_data] + return sorted(channels, key=lambda s: s.name) def _save_data(self, data: Any, filename: str, as_json: bool = False): """Zapisuje dane do pliku"""