//Refresh the list with the items in the local store. private async Task RefreshItemsFromTableAsync() { try { // Get the items that weren't marked as checked and add them in the adapter var list = await productTable.Where(p => p.Deleted == false).ToListAsync(); adapter.Clear(); foreach (Products current in list.OrderBy(x => x.Name).ThenBy(x => x.Calories)) { adapter.Add(current); } } catch (Exception e) { CreateAndShowDialog(e, "Error"); } }