controller: sort changeset notes

This commit is contained in:
Hylke Bons 2011-06-23 00:16:31 +01:00
parent 031c82dd59
commit bb2987c328

View file

@ -394,6 +394,8 @@ namespace SparkleShare {
if (change_set.SupportsNotes) {
comments = "<table class=\"comments\">";
change_set.Notes.Sort ((x, y) => (x.Timestamp.CompareTo (y.Timestamp)));
foreach (SparkleNote note in change_set.Notes) {
comments += "<tr>" +
" <td class=\"comment-author\">" + note.UserName + "</td>" +