Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 9206572

Browse files
committed
List now automatically sorts by nearest due date
1 parent a35d249 commit 9206572

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

AssignmentReminder/AssignmentList.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ public AssignmentList()
9292

9393
sort = new ListViewColumnSorter();
9494
listView.ListViewItemSorter = sort;
95-
listView.Sorting = SortOrder.Ascending;
95+
sort.SortColumn = 1; // Sorts the due date column to show nearest due dates at the top
96+
sort.Order = SortOrder.Ascending;
9697
listView.Sort();
9798
}
9899

AssignmentReminder/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion( "1.4.2" )]
35-
[assembly: AssemblyFileVersion( "1.4.2" )]
34+
[assembly: AssemblyVersion( "1.5" )]
35+
[assembly: AssemblyFileVersion( "1.5" )]

0 commit comments

Comments
 (0)