mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-04-05 22:07:23 +02:00
Also sort custom dns list on rtype and value
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user