From bb2987c328ce0a1ffcce6b687fceda0d0ece50c2 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 23 Jun 2011 00:16:31 +0100 Subject: [PATCH] controller: sort changeset notes --- SparkleShare/SparkleController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SparkleShare/SparkleController.cs b/SparkleShare/SparkleController.cs index 6490f8c4..e8558244 100644 --- a/SparkleShare/SparkleController.cs +++ b/SparkleShare/SparkleController.cs @@ -394,6 +394,8 @@ namespace SparkleShare { if (change_set.SupportsNotes) { comments = ""; + change_set.Notes.Sort ((x, y) => (x.Timestamp.CompareTo (y.Timestamp))); + foreach (SparkleNote note in change_set.Notes) { comments += "" + " " +
" + note.UserName + "