mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-11-03 19:30:54 +00:00 
			
		
		
		
	Also sort custom dns list on rtype and value
This commit is contained in:
		
							parent
							
								
									1484dff781
								
							
						
					
					
						commit
						e7b9fb26c1
					
				@ -198,6 +198,12 @@ function show_current_custom_dns() {
 | 
				
			|||||||
        return el;
 | 
					        return el;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      var sort = function(a, b) {
 | 
					      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;
 | 
					        return a.qname > b.qname ? 1 : -1;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user