Permalink
Browse files

log: fix sorting issue

  • Loading branch information...
1 parent 378c87d commit b1eef089d8f7566bfc7c78a90bbedd96019ff30b @hbons committed Jun 14, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 SparkleShare/SparkleController.cs
@@ -251,6 +251,9 @@ public List<SparkleChangeSet> GetLog ()
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

0 comments on commit b1eef08

Please sign in to comment.