Changeset 2314


Ignore:
Timestamp:
Sep 2, 2013, 4:25:53 PM (5 years ago)
Author:
matthijs
Message:

luci: Sort 3G profiles by description

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/luci/modules/admin-fon/luasrc/model/cbi/fon_umts/device_config.lua

    r2313 r2314  
    7878-- basis for custom settings.
    7979base = s:option(ListValue, "base", "Based on")
    80 for i, p in pairs(profiles) do
     80sorted_profiles = luci.util.spairs(profiles, function(a, b) return profiles[a].description < profiles[b].description end)
     81
     82for i, p in sorted_profiles do
    8183        if (p.internal) then
    8284                base:value(p.name, p.description)
Note: See TracChangeset for help on using the changeset viewer.