controller: gethtmllog sort date descending
This commit is contained in:
parent
fe861e5e5e
commit
c71006bf47
|
@ -251,9 +251,6 @@ 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
|
||||
|
@ -287,6 +284,9 @@ namespace SparkleShare {
|
|||
{
|
||||
List <ActivityDay> activity_days = new List <ActivityDay> ();
|
||||
|
||||
change_sets.Sort ((x, y) => (x.Timestamp.CompareTo (y.Timestamp)));
|
||||
change_sets.Reverse ();
|
||||
|
||||
if (change_sets.Count == 0)
|
||||
return null;
|
||||
|
||||
|
|
Loading…
Reference in a new issue