From b1eef089d8f7566bfc7c78a90bbedd96019ff30b Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Tue, 14 Jun 2011 19:30:27 +0100 Subject: [PATCH] log: fix sorting issue --- SparkleShare/SparkleController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SparkleShare/SparkleController.cs b/SparkleShare/SparkleController.cs index 66cb0f11..ab5caac4 100644 --- a/SparkleShare/SparkleController.cs +++ b/SparkleShare/SparkleController.cs @@ -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