Reverse the sort for the admin. The list is traversed in reverse elsewhere. This makes them sort the same
This commit is contained in:
parent
db6cdff653
commit
765789226e
@ -512,7 +512,6 @@ namespace EduNetworkBuilder
|
||||
public TreeNode WorkTree(TreeNode theTop=null, bool ForTeacher = false)
|
||||
{
|
||||
//Sort by due date, and within the due dates, sort by save date
|
||||
//Projects.Sort((q, p) => p.DueDate == q.DueDate ? p.SaveDate.CompareTo(q.SaveDate) : p.DueDate.CompareTo(q.DueDate));
|
||||
Projects.Sort((q, p) => p.Compare(q));
|
||||
|
||||
List<SchoolworkClass> DrawFrom = new List<SchoolworkClass>();
|
||||
|
@ -292,7 +292,10 @@ namespace EduNetworkBuilder
|
||||
Node.Tag = "Class"; //Do not translate this
|
||||
TreeNode Top = Node;
|
||||
tvClasswork.Nodes.Add(Node);
|
||||
CurrentUser.Projects.Sort((q, p) => p.Compare(q));
|
||||
|
||||
//This is sorted reverse from what happens in PersonClass.WorkTree.
|
||||
//In PersonClass.WorkTree, we traverse it backwards.
|
||||
CurrentUser.Projects.Sort((p, q) => p.Compare(q));
|
||||
foreach (SchoolworkClass SWC in CurrentUser.Projects)
|
||||
{
|
||||
Node = new TreeNode(SWC.Name);
|
||||
|
Loading…
Reference in New Issue
Block a user