19 lines
421 B
JavaScript
19 lines
421 B
JavaScript
|
import service from 'consul-ui/sort/comparators/service';
|
||
|
|
||
|
export function initialize(container) {
|
||
|
// Service-less injection using private properties at a per-project level
|
||
|
const Sort = container.resolveRegistration('service:sort');
|
||
|
const comparators = {
|
||
|
service: service(),
|
||
|
};
|
||
|
Sort.reopen({
|
||
|
comparator: function(type) {
|
||
|
return comparators[type];
|
||
|
},
|
||
|
});
|
||
|
}
|
||
|
|
||
|
export default {
|
||
|
initialize,
|
||
|
};
|