Sort receipts by date then title
This commit is contained in:
@@ -526,7 +526,9 @@ class CreatePDFReportViewModel : BaseViewModel, ICanCheckShutdown, ILogger
|
|||||||
public void ResortPDFItemsByDate()
|
public void ResortPDFItemsByDate()
|
||||||
{
|
{
|
||||||
LogInfo("Sorting report files list...");
|
LogInfo("Sorting report files list...");
|
||||||
ReportFiles = new ObservableCollection<ReportFile>(ReportFiles.OrderBy(x => x.ReceiptDateTime));
|
ReportFiles = new ObservableCollection<ReportFile>(
|
||||||
|
ReportFiles.OrderBy(x => x.ReceiptDateTime)
|
||||||
|
.ThenBy(x => x.Title));
|
||||||
HasUnsavedWork = true;
|
HasUnsavedWork = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user