import naturalCompare from 'natural-compare-lite' ; interface AnyObject { [ s ] : any ; } const sortByObjectKey = ( key ) => ( objectA , objectB ) => naturalCompare ( objectA [ key ] , objectB [ key ] ) ; export default sortByObjectKey ;