import { createCustomCachedSelector } from '../../../../state/create_selector' ; import { compareByValueAsc } from '../../../../utils/common' ; import { computeSeriesGeometriesSelector } from './compute_series_geometries' ; internal export const getGeometriesIndexKeysSelector = createCustomCachedSelector ( [ computeSeriesGeometriesSelector ] , ( seriesGeometries ) : ( number | string ) [ ] => seriesGeometries . geometriesIndex . keys ( ) . sort ( compareByValueAsc ) ) ;