controller: sort changeset notes
This commit is contained in:
parent
331e24a144
commit
e54f3d277e
|
@ -394,6 +394,8 @@ namespace SparkleShare {
|
||||||
if (change_set.SupportsNotes) {
|
if (change_set.SupportsNotes) {
|
||||||
comments = "<table class=\"comments\">";
|
comments = "<table class=\"comments\">";
|
||||||
|
|
||||||
|
change_set.Notes.Sort ((x, y) => (x.Timestamp.CompareTo (y.Timestamp)));
|
||||||
|
|
||||||
foreach (SparkleNote note in change_set.Notes) {
|
foreach (SparkleNote note in change_set.Notes) {
|
||||||
comments += "<tr>" +
|
comments += "<tr>" +
|
||||||
" <td class=\"comment-author\">" + note.UserName + "</td>" +
|
" <td class=\"comment-author\">" + note.UserName + "</td>" +
|
||||||
|
|
Loading…
Reference in a new issue