mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 07:08:04 +08:00
Fix(WebUI): 修正实例排序
This commit is contained in:
parent
5f0bea8f7b
commit
2a8d9ad4d5
@ -173,7 +173,7 @@ class AlasGUI(Frame):
|
||||
regular_instances.append(name)
|
||||
|
||||
# Sort numeric instances by their number
|
||||
numeric_instances.sort(key=lambda x: x[1])
|
||||
numeric_instances.sort(key=lambda x: x[0])
|
||||
# Sort regular instances alphabetically
|
||||
regular_instances.sort()
|
||||
|
||||
@ -234,7 +234,7 @@ class AlasGUI(Frame):
|
||||
if match:
|
||||
num_val = int(match.group())
|
||||
self.inst_cache.append((num_val, name))
|
||||
self.inst_cache.sort(key=lambda x: x[1])
|
||||
self.inst_cache.sort(key=lambda x: x[0])
|
||||
if flag:
|
||||
for index, inst in self.inst_cache:
|
||||
# Check for state change
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user