log: fix sorting issue

This commit is contained in:
Hylke Bons 2011-06-14 19:30:27 +01:00
parent 2d07900d03
commit 098b42d917

View file

@ -251,6 +251,9 @@ namespace SparkleShare {
foreach (SparkleRepoBase repo in Repositories)
list.AddRange (repo.GetChangeSets (50));
list.Sort ((x, y) => (x.Timestamp.CompareTo (y.Timestamp)));
list.Reverse ();
if (list.Count > 100)
return list.GetRange (0, 100);
else