Skip to content

Commit 0018786

Browse files
author
spalger
committed
[aggTypes/fieldParam] move orderby back into condition
1 parent fbf884a commit 0018786

File tree

1 file changed

+1
-1
lines changed
  • src/ui/public/agg_types/param_types

1 file changed

+1
-1
lines changed

src/ui/public/agg_types/param_types/field.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export default function FieldAggParamFactory(Private, $filter) {
4444

4545
if (this.filterFieldTypes) {
4646
fields = $filter('fieldType')(fields, this.filterFieldTypes);
47+
fields = $filter('orderBy')(fields, ['type', 'name']);
4748
}
4849

49-
fields = $filter('orderBy')(fields, ['type', 'name']);
5050

5151
return new IndexedArray({
5252
index: ['name'],

0 commit comments

Comments
 (0)