summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-14 17:22:29 +0100
committerGitHub <noreply@github.com>2023-12-14 17:22:29 +0100
commit6dc0e7a72fe2453130123e78280a0cc02c1a61b8 (patch)
tree3889c33e340d9ab25b346e3ae2ed765bd4830c7f /python
parenta9ff143fc1e9a95ac2f375db0bd06a8a43fa860e (diff)
parenta30c85f14bd6c8480983d293a51423ad08ee1ed0 (diff)
downloadvyos-1x-6dc0e7a72fe2453130123e78280a0cc02c1a61b8.tar.gz
vyos-1x-6dc0e7a72fe2453130123e78280a0cc02c1a61b8.zip
Merge pull request #2634 from Trae32566/T5827
T5827: made show system image alphabetical
Diffstat (limited to 'python')
-rw-r--r--python/vyos/system/grub.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/vyos/system/grub.py b/python/vyos/system/grub.py
index 0ac16af9a..2692aaea1 100644
--- a/python/vyos/system/grub.py
+++ b/python/vyos/system/grub.py
@@ -138,6 +138,8 @@ def version_list(root_dir: str = '') -> list[str]:
versions_list: list[str] = []
for file in versions_files:
versions_list.append(file.stem)
+ versions_list.sort(reverse=True)
+
return versions_list