import MakeSpreadsheetColumnType from './MakeSpreadsheetColumnType' ; import { types } from 'mobx-state-tree' ; import { FilterModelType as NumberFilterModel } from './Number' ; const FilterModelType = types . compose ( NumberFilterModel , types . model ( { type : types . literal ( 'LocStart' ) , } ) ) ; const LocStart = MakeSpreadsheetColumnType ( 'LocStart' , { categoryName : 'Location' , displayName : 'Start' , compare ( cellA , cellB ) { return parseFloat ( cellA . text ) - parseFloat ( cellB . text ) ; } , FilterModelType , } ) ; export default LocStart ;