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-bot.html'> 8 9 <script> 10 11 var CTBuilderGroup; 12 13 (function() { 14 15 CTBuilderGroup = function(name) { 16 this.name = name; 17 this.builders = []; 18 } 19 20 CTBuilderGroup.prototype.addBuilder = function(builder) { 21 builder.sort(); 22 this.builders.push(builder); 23 }; 24 25 CTBuilderGroup.prototype.sort = function() { 26 this.builders.sort(function(a, b) { return a.name > b.name; }); 27 }; 28 29 })(); 30 31 </script> 32