[#46] Sorting on Inventory page same as ND1
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
* [#84] No longer use dns as a key into devices; cope with dupe dns (LT)
|
* [#84] No longer use dns as a key into devices; cope with dupe dns (LT)
|
||||||
* Correct date formatting and logic in IP Inventory report
|
* Correct date formatting and logic in IP Inventory report
|
||||||
* Fix redirect when accessing a deep link when unauthenticated
|
* Fix redirect when accessing a deep link when unauthenticated
|
||||||
|
* [#46] Sorting on Inventory page same as ND1
|
||||||
|
|
||||||
2.022000 - 2014-01-26
|
2.022000 - 2014-01-26
|
||||||
|
|
||||||
|
|||||||
@@ -483,7 +483,7 @@ sub get_models {
|
|||||||
select => [ 'vendor', 'model', { count => 'ip' } ],
|
select => [ 'vendor', 'model', { count => 'ip' } ],
|
||||||
as => [qw/vendor model count/],
|
as => [qw/vendor model count/],
|
||||||
group_by => [qw/vendor model/],
|
group_by => [qw/vendor model/],
|
||||||
order_by => [{-asc => 'vendor'}, {-desc => 'count'}, {-asc => 'model'}],
|
order_by => [{-asc => 'vendor'}, {-asc => 'model'}],
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -513,7 +513,7 @@ sub get_releases {
|
|||||||
select => [ 'os', 'os_ver', { count => 'ip' } ],
|
select => [ 'os', 'os_ver', { count => 'ip' } ],
|
||||||
as => [qw/os os_ver count/],
|
as => [qw/os os_ver count/],
|
||||||
group_by => [qw/os os_ver/],
|
group_by => [qw/os os_ver/],
|
||||||
order_by => [{-asc => 'os'}, {-desc => 'count'}, {-asc => 'os_ver'}],
|
order_by => [{-asc => 'os'}, {-asc => 'os_ver'}],
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user