import { Filter , FilterStateStore } from '../../../../common' ; param { object } first param { object } second returns { number } export const sortFilters = ( { $state : a } , { $state : b } ) : number => { if ( a ! . store === b ! . store ) { return 0 ; } else { return a ! . store === FilterStateStore . GLOBAL_STATE && b ! . store !== FilterStateStore . GLOBAL_STATE ? - 1 : 1 ; } } ;