Closed q16marvin closed 1 year ago
Same issue as with #4911 and #4957: sorting is based on the actual value, not the numerical value.
Can probably (not tested) be fixed by changing
and
to
item.in_use = {
sortBy: item.percent_in_use,
value: '<div class="progress">' +
'<div class="progress-bar-mailbox progress-bar progress-bar-' + item.percent_class + '" role="progressbar" aria-valuenow="' + item.percent_in_use + '" aria-valuemin="0" aria-valuemax="100" ' +
'style="min-width:2em;width:' + item.percent_in_use + '%">' + item.percent_in_use + '%' + '</div></div>',
};
{
title: lang.in_use,
data: 'in_use',
defaultContent: '',
responsivePriority: 9,
className: 'dt-data-w100',
createdCell: function(td, cellData) {
$(td).attr({
"data-order": cellData.sortBy,
"data-sort": cellData.sortBy
});
$(td).html(cellData.value);
}
},
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This is still a problem in version 2023-11, the issue should not be closed. When sorting mailboxes by In use (%) in descending order, I still get 90%, then 9%, then 80% etc.
Contribution guidelines
I've found a bug and checked that ...
Description
Logs:
Steps to reproduce:
Which branch are you using?
master
Operating System:
Ubuntu 18.04.6 LTS
Server/VM specifications:
8GB Memory, 4 Cores
Is Apparmor, SELinux or similar active?
no
Virtualization technology:
KVM
Docker version:
20.10.23
docker-compose version or docker compose version:
v2.9.0
mailcow version:
2023-01a
Reverse proxy:
no revery proxy
Logs of git diff:
Logs of iptables -L -vn:
Logs of ip6tables -L -vn:
Logs of iptables -L -vn -t nat:
Logs of ip6tables -L -vn -t nat:
DNS check: