From 08df41c793cc436d8ef66aa218d50b7e33ca6658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Barroso=20Galindo?= Date: Sun, 23 Jan 2022 19:11:37 +0100 Subject: [PATCH] Always sorting tags --- .github/calculate_db.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/calculate_db.py b/.github/calculate_db.py index 4d79a8eaa..4e4657be6 100755 --- a/.github/calculate_db.py +++ b/.github/calculate_db.py @@ -124,6 +124,9 @@ class Tags: self._index += 1 def get_tags_for_file(self, path: Path): + return sorted(self._get_tags_for_file(path)) + + def _get_tags_for_file(self, path: Path): parent = path.parts[0].lower() if parent[0] == '_': parent = parent[1:] @@ -213,6 +216,9 @@ class Tags: return False def get_tags_for_folder(self, path: Path): + return sorted(self._get_tags_for_folder(path)) + + def _get_tags_for_folder(self, path: Path): if len(path.parts) == 0: return []