@@ -52,8 +52,12 @@ instance Foldable List where
55−sortBy :: (a -> a -> Ordering) -> List a -> List a
55+sortBy :: (Ord b) => (a -> b) -> List a -> List a
56−sortBy comparison (List x xs) =
56+sortBy toRank (List x xs) =
59+ compare (toRank a) (toRank b)
57 case List.sortBy comparison xs of
61 case List.sortBy comparison xs of