diff options
Diffstat (limited to 'Utility/DataUnits.hs')
-rw-r--r-- | Utility/DataUnits.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/DataUnits.hs b/Utility/DataUnits.hs index 2a936f1fd..7399809eb 100644 --- a/Utility/DataUnits.hs +++ b/Utility/DataUnits.hs @@ -111,7 +111,7 @@ roughSize units short i | i < 0 = '-' : findUnit units' (negate i) | otherwise = findUnit units' i where - units' = reverse $ sort units -- largest first + units' = sortBy (flip compare) units -- largest first findUnit (u@(Unit s _ _):us) i' | i' >= s = showUnit i' u |