This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

how to sort the names listed ?
#3
(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.

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
how to sort the names listed ? - by Simuzer - 21.08.2025, 06:39
RE: how to sort the names listed ? - by admin - 21.08.2025, 07:13
RE: how to sort the names listed ? - by Simuzer - 21.08.2025, 07:21

Forum Jump: