sort latest first

This commit is contained in:
Kham
2025-11-11 09:09:40 +11:00
parent e4f9104eea
commit fe6bf7f412
+1 -1
View File
@@ -145,7 +145,7 @@ namespace CarParkValidationAPI.Repository
} }
*/ */
statuscode = 1; statuscode = 1;
result.Sort((x, y) => x.ValidateDate.CompareTo(y.ValidateDate)); result.Sort((x, y) => y.ValidateDate.CompareTo(x.ValidateDate));
} }
catch (Exception ex) catch (Exception ex)
{ {