21.08.2025, 07:21
(21.08.2025, 07:13)admin Wrote: This will be fixed in the next firmware.
Meanwhile you can run this script to fix the sort order.
Code:function sort(itype) local query = 'SELECT id, name FROM visfloors WHERE type=?' local items = db:getall(query, itype) table.sort(items, function(a, b) return a.name < b.name end) for i, item in ipairs(items) do db:update('visfloors', { sortorder = i }, { id = item.id }) end end sort('widget') sort('layout')
Its ok !
Thank you a lot.