mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 18:03:54 +00:00
Merge pull request #2029 from getredash/patches
Change: sort series by name.
This commit is contained in:
commit
38b655ce3a
@ -1,6 +1,6 @@
|
||||
import debug from 'debug';
|
||||
import moment from 'moment';
|
||||
import { uniq, contains, values, some, each, isArray, isNumber, isString, includes } from 'underscore';
|
||||
import { sortBy, uniq, contains, values, some, each, isArray, isNumber, isString, includes } from 'underscore';
|
||||
|
||||
const logger = debug('redash:services:QueryResult');
|
||||
const filterTypes = ['filter', 'multi-filter', 'multiFilter'];
|
||||
@ -324,7 +324,7 @@ function QueryResultService($resource, $timeout, $q) {
|
||||
addPointToSeries(point, series, seriesName);
|
||||
}
|
||||
});
|
||||
return values(series);
|
||||
return sortBy(values(series), 'name');
|
||||
}
|
||||
|
||||
getColumns() {
|
||||
|
Loading…
Reference in New Issue
Block a user