Sort by due date, and submission date

This commit is contained in:
Tim Young 2017-08-02 15:27:27 -05:00
parent a8f7b94e6c
commit 538490087d

View File

@ -236,7 +236,8 @@ namespace EduNetworkBuilder
/// <returns></returns>
public TreeNode WorkTree(TreeNode theTop=null)
{
Projects.Sort((q, p) => p.DueDate.CompareTo(q.DueDate));
//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));
List<SchoolworkClass> DrawFrom = new List<SchoolworkClass>();
List<SchoolworkClass> MasterList = new List<SchoolworkClass>();