order by chronological and then by odometer

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-01-12 15:17:46 -07:00
parent cb73be0e43
commit b7a3ef0fa7

View File

@@ -742,7 +742,7 @@ namespace CarCareTracker.Controllers
Cost = x.Cost,
DataType = ImportMode.TaxRecord
}));
vehicleHistory.VehicleHistory = reportData;
vehicleHistory.VehicleHistory = reportData.OrderBy(x=>x.Date).ThenBy(x=>x.Odometer).ToList();
return PartialView("_VehicleHistory", vehicleHistory);
}
[HttpPost]