1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-29 04:17:07 +00:00

Also sort custom dns list on rtype and value

This commit is contained in:
Victor Lap 2019-10-17 09:26:21 +02:00
parent 1484dff781
commit e7b9fb26c1

View File

@ -198,6 +198,12 @@ function show_current_custom_dns() {
return el;
}
var sort = function(a, b) {
if(a.qname === b.qname) {
if(a.rtype === b.rtype) {
return a.value > b.value ? 1 : -1;
}
return a.rtype > b.rtype ? 1 : -1;
}
return a.qname > b.qname ? 1 : -1;
}