fix sort issue

This commit is contained in:
gaoyuan
2022-03-06 22:19:06 +08:00
parent 0c3b8c52bd
commit 49e4e46cdb
5 changed files with 20 additions and 18 deletions

View File

@ -60,7 +60,7 @@ namespace Billing.Views
b.CreateTime.Year == e.Date.Year &&
b.CreateTime.Month == e.Date.Month &&
b.CreateTime.Day == e.Date.Day);
Bills = new List<UIBill>(bills.Select(b => WrapBill(b)));
Bills = new List<UIBill>(bills.OrderBy(b => b.CreateTime).Select(b => WrapBill(b)));
RefreshBalance(Bills);
MainThread.BeginInvokeOnMainThread(async () => await scrollView.ScrollToAsync(0, 0, true));
});