mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-05 21:17:40 +00:00
fix sorting issue
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
b8ee5b2711
commit
d269e4966c
1 changed files with 10 additions and 2 deletions
|
@ -1,7 +1,15 @@
|
|||
// Variables used by Scriptable.
|
||||
// These must be at the very top of the file. Do not edit.
|
||||
// icon-color: red; icon-glyph: syringe;
|
||||
// Version 1.0.0
|
||||
|
||||
/**************
|
||||
Version 1.0.1
|
||||
|
||||
Changelog:
|
||||
v1.0.1:
|
||||
- fix sorting issue
|
||||
|
||||
/**************/
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////// User-Config /////////////////////////
|
||||
|
@ -223,7 +231,7 @@ if (config.widgetFamily === 'large') {
|
|||
const stack = widget.addStack()
|
||||
stack.layoutVertically()
|
||||
stack.spacing = spacing
|
||||
for (const [key, value] of Object.entries(result.states)) {
|
||||
for (const [key, value] of Object.entries(result.states).sort((a, b) => a[0].localeCompare(b[0]))) {
|
||||
const row = stack.addStack()
|
||||
row.layoutHorizontally()
|
||||
const stateText = row.addText(key)
|
||||
|
|
Loading…
Add table
Reference in a new issue