blob: 45ec1c16a53d89438b75b750d024c5b2a815e01a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import _ from 'underscore';
import BaseFacet from './base-facet';
import Template from '../templates/facets/issues-severity-facet.hbs';
export default BaseFacet.extend({
template: Template,
sortValues: function (values) {
var order = ['BLOCKER', 'MINOR', 'CRITICAL', 'INFO', 'MAJOR'];
return _.sortBy(values, function (v) {
return order.indexOf(v.val);
});
}
});
|