Skip to content

Commit

Permalink
Merge pull request #188 from OpenTrafficCam/feature/2136-sort-treevie…
Browse files Browse the repository at this point in the history
…ws-by-name

Feature/2136-sort-treeviews-by-name
  • Loading branch information
briemla authored May 16, 2023
2 parents 71d10ae + d5b3eb5 commit d6794cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OTAnalytics/plugin_ui/customtkinter_gui/frame_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ def _notify_viewmodel_about_selected_item_id(self, flow_id: Optional[str]) -> No
def update_items(self) -> None:
self.delete(*self.get_children())
item_ids = self._viewmodel.get_all_flows()
self.add_items(item_ids=item_ids)
self.add_items(item_ids=sorted(item_ids))
2 changes: 1 addition & 1 deletion OTAnalytics/plugin_ui/customtkinter_gui/frame_sections.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _notify_viewmodel_about_selected_item_id(
def update_items(self) -> None:
self.delete(*self.get_children())
item_ids = [section.id.id for section in self._viewmodel.get_all_sections()]
self.add_items(item_ids=item_ids)
self.add_items(item_ids=sorted(item_ids))


class ListboxSections(Listbox):
Expand Down

0 comments on commit d6794cc

Please sign in to comment.