]> arthur.barton.de Git - netdata.git/commitdiff
sort charts properly
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 16 Dec 2015 23:28:08 +0000 (01:28 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 16 Dec 2015 23:28:08 +0000 (01:28 +0200)
web/dashboard_full.html

index 068d59587a69782ea63cc23578da9f818cea9b23..5fa12ef4ff0b95abafe26f4bacc114910849bba1 100755 (executable)
@@ -493,6 +493,8 @@ function prepareScreen(data) {
 
        function prioritySort(a, b) {
                if(a.priority < b.priority) return -1;
+               if(a.priority > b.priority) return 1;
+               if(a.name < b.name) return -1;
                return 1;
        }