pySim-shell: alphabetically sort name of files in 'dir' command

Change-Id: Id136909884d3c0eaa2416c6c488a6c4b7ed48119
This commit is contained in:
Harald Welte 2022-01-21 15:31:29 +01:00 committed by laforge
parent 2a701eea60
commit b3d68c0b98
1 changed files with 3 additions and 1 deletions

View File

@ -172,7 +172,9 @@ class CardFile(object):
list containing all selectable names.
"""
sels = self.get_selectables(flags)
return list(sels.keys())
sel_keys = list(sels.keys())
sel_keys.sort()
return sel_keys
def decode_select_response(self, data_hex:str):
"""Decode the response to a SELECT command.