Skip to content

Commit

Permalink
fixes: #12
Browse files Browse the repository at this point in the history
  • Loading branch information
moisbo committed Oct 13, 2023
1 parent 061297f commit 9b3ece6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions portal/src/components/helpers/AggregationHelper.component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</template>
<script>
import AggregationAsIcon from "../widgets/AggregationAsIcon.component.vue";
import {isUndefined, uniqBy} from "lodash";
import {isUndefined, uniqBy, orderBy} from "lodash";
export default {
components: {AggregationAsIcon},
Expand Down Expand Up @@ -36,7 +36,9 @@ export default {
});
}
}
return uniqBy(buckets, 'key');
const uniqueBuckets = uniqBy(buckets, 'key');
const orderedBuckets = orderBy(uniqueBuckets, ['key']);
return orderedBuckets;
}
},
methods: {
Expand Down

0 comments on commit 9b3ece6

Please sign in to comment.