mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Sort results by name
This commit is contained in:
parent
d572268514
commit
9b26994000
1 changed files with 3 additions and 1 deletions
|
|
@ -471,7 +471,7 @@ local function build_result(label, value, value_type, links, badges)
|
|||
return r
|
||||
end
|
||||
|
||||
for k, v in pairs(hosts) do
|
||||
for k, v in pairsByField(hosts, 'name', asc) do
|
||||
if((res_count >= max_group_items) or (#results >= max_total_items)) then
|
||||
break
|
||||
end
|
||||
|
|
@ -494,5 +494,7 @@ local data = {
|
|||
results = results,
|
||||
}
|
||||
|
||||
-- tprint(results)
|
||||
|
||||
rest_utils.answer(rc, data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue