Merge pull request #129 from fpco/snapshot-diff-sort

Sort packages in snapshot diff
This commit is contained in:
Michael Snoyman 2015-10-11 15:34:15 +03:00
commit e74080d5c8

View File

@ -33,7 +33,7 @@
$else $else
<option value=@{StackageDiffR name1 name2'}>#{toPathPiece name2'} <option value=@{StackageDiffR name1 name2'}>#{toPathPiece name2'}
<tbody> <tbody>
$forall (name, VersionChange verChange) <- HashMap.toList snapDiff $forall (name, VersionChange verChange) <- sortOn (toCaseFold . fst) $ HashMap.toList snapDiff
<tr> <tr>
$case verChange $case verChange
$of This oldVersion $of This oldVersion