Lines Matching full:source2
142 EventsView.compareActive_ = function(source1, source2) {
143 if (source1.isActive() && !source2.isActive())
145 if (!source1.isActive() && source2.isActive())
148 var deltaEndTime = source1.getEndTime() - source2.getEndTime();
157 return -EventsView.compareSourceId_(source1, source2);
159 return EventsView.compareSourceId_(source1, source2);
162 EventsView.compareDescription_ = function(source1, source2) {
164 var source2Text = source2.getDescription().toLowerCase();
168 return EventsView.compareSourceId_(source1, source2);
171 EventsView.compareDuration_ = function(source1, source2) {
172 var durationDifference = source2.getDuration() - source1.getDuration();
175 return EventsView.compareSourceId_(source1, source2);
184 EventsView.compareSourceId_ = function(source1, source2) {
188 var sourceId2 = source2.getSourceId();
190 sourceId2 = source2.getMaxPreviousEntrySourceId();
197 return source2.getSourceId() - source1.getSourceId();
200 EventsView.compareSourceType_ = function(source1, source2) {
202 var source2Text = source2.getSourceTypeString();
206 return EventsView.compareSourceId_(source1, source2);