|
|
@ -1,10 +1,8 @@
|
|
|
|
// Sort watchers by time
|
|
|
|
// Sort watchers by time
|
|
|
|
// Used by the performance tab
|
|
|
|
// Used by the performance tab
|
|
|
|
panelApp.filter('sortByTime', function () {
|
|
|
|
panelApp.filter('sortByTime', function () {
|
|
|
|
return function (input, range) {
|
|
|
|
return function (input, min, max) {
|
|
|
|
var copy = input.slice(0),
|
|
|
|
var copy = input.slice(0);
|
|
|
|
min = range[0],
|
|
|
|
|
|
|
|
max = range[1];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
copy = copy.sort(function (a, b) {
|
|
|
|
copy = copy.sort(function (a, b) {
|
|
|
|
return b.time - a.time;
|
|
|
|
return b.time - a.time;
|
|
|
|