luci-app-opkg: fix sorting by size column
Fixes: #6120 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
e8029b0828
commit
63e5d38db0
1 changed files with 3 additions and 2 deletions
|
@ -310,8 +310,9 @@ function display(pattern)
|
||||||
currentDisplayRows.push([
|
currentDisplayRows.push([
|
||||||
name,
|
name,
|
||||||
ver,
|
ver,
|
||||||
pkg.size ? '%1024mB'.format(pkg.size)
|
[ pkg.size || 0,
|
||||||
: (altsize ? '~%1024mB'.format(altsize) : '-'),
|
pkg.size ? '%1024mB'.format(pkg.size)
|
||||||
|
: (altsize ? '~%1024mB'.format(altsize) : '-') ],
|
||||||
desc,
|
desc,
|
||||||
btn
|
btn
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue