[CLOUDSTACK-10318] Bug on sorting ACL rules list in chrome (#2478)

This commit is contained in:
Rafael Weingärtner 2018-03-06 07:53:10 -03:00 committed by GitHub
parent 2037dc9eb3
commit 4412563f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1325,7 +1325,7 @@
if(items){ if(items){
items.sort(function(a, b) { items.sort(function(a, b) {
return a.number >= b.number; return a.number - b.number;
}).map(function(acl) { }).map(function(acl) {
if (parseInt(acl.protocol)) { // protocol number if (parseInt(acl.protocol)) { // protocol number
acl.protocolnumber = acl.protocol; acl.protocolnumber = acl.protocol;