log: fix sorting issue
This commit is contained in:
parent
378c87d194
commit
b1eef089d8
|
@ -251,6 +251,9 @@ namespace SparkleShare {
|
||||||
foreach (SparkleRepoBase repo in Repositories)
|
foreach (SparkleRepoBase repo in Repositories)
|
||||||
list.AddRange (repo.GetChangeSets (50));
|
list.AddRange (repo.GetChangeSets (50));
|
||||||
|
|
||||||
|
list.Sort ((x, y) => (x.Timestamp.CompareTo (y.Timestamp)));
|
||||||
|
list.Reverse ();
|
||||||
|
|
||||||
if (list.Count > 100)
|
if (list.Count > 100)
|
||||||
return list.GetRange (0, 100);
|
return list.GetRange (0, 100);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue