From 5a9f7370b5db5fe5b35955e30ac00ee72d964c64 Mon Sep 17 00:00:00 2001 From: "LAPTOP-KB8JC2K2\\acer" Date: Sat, 10 Apr 2021 13:50:34 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B8=E0=B8=87=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=80?= =?UTF-8?q?=E0=B8=A3=E0=B8=B5=E0=B8=A2=E0=B8=87=E0=B8=A5=E0=B8=B3=E0=B8=94?= =?UTF-8?q?=E0=B8=B1=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Models/vw_limit_frame_plan/vw_limit_frame_planService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/vw_limit_frame_plan/vw_limit_frame_planService.cs b/Models/vw_limit_frame_plan/vw_limit_frame_planService.cs index 354cbe9..4e2329c 100644 --- a/Models/vw_limit_frame_plan/vw_limit_frame_planService.cs +++ b/Models/vw_limit_frame_plan/vw_limit_frame_planService.cs @@ -79,7 +79,7 @@ namespace TodoAPI2.Models { var entity = _repository.Get(id); var i = Mapper.Map(entity); - i.item_plan_guid = (from x in _repository.Context.eva_performance_plan select x).ToList(); + i.item_plan_guid = (from x in _repository.Context.eva_performance_plan orderby x.fiscal_year descending,x.theTime descending select x).ToList(); return i; @@ -87,7 +87,7 @@ namespace TodoAPI2.Models public vw_limit_frame_planWithSelectionViewModel GetBlankItem() { var i = new vw_limit_frame_planWithSelectionViewModel(); - i.item_plan_guid = (from x in _repository.Context.eva_performance_plan select x).ToList(); + i.item_plan_guid = (from x in _repository.Context.eva_performance_plan orderby x.fiscal_year descending, x.theTime descending select x).ToList(); return i;