1 <!-- 2 Copyright 2014 The Chromium Authors. All rights reserved. 3 Use of this source code is governed by a BSD-style license that can be 4 found in the LICENSE file. 5 --> 6 7 <link rel='import' href='ct-builder-group.html'> 8 9 <script> 10 11 var CTBuilderStatus; 12 13 (function() { 14 15 CTBuilderStatus = function() { 16 this.groups = []; 17 }; 18 19 CTBuilderStatus.prototype.addGroup = function(group) { 20 group.sort(); 21 this.groups.push(group); 22 }; 23 24 CTBuilderStatus.prototype.sort = function() { 25 this.groups.sort(function(a, b) { return a.name > b.name; }); 26 }; 27 28 })(); 29 30 </script> 31