import type { IAdministrationItem } from './IAdministrationItem' ; export function orderAdministrationItems ( configuration ) { return ( itemA , itemB ) : number => { if ( configuration ) { return ( itemA . configurationWizardOptions ?. order ?? itemA . order ) - ( itemB . configurationWizardOptions ?. order ?? itemB . order ) ; } return itemA . order - itemB . order ; } ; }