module Gargantext.Utils.List whereimport Data.Ord (class Ord, comparing)import Data.List as List-- same as-- https://github.com/purescript/purescript-arrays/blob/v5.3.1/src/Data/Array.purs#L715-L715sortWith :: forall a b. Ord b => (a -> b) -> List.List a -> List.List asortWith f = List.sortBy (comparing f)