ปรับปรุงการเรียงลำดับ

This commit is contained in:
LAPTOP-KB8JC2K2\acer
2021-04-10 13:50:34 +07:00
parent e227b87af4
commit 5a9f7370b5

View File

@@ -79,7 +79,7 @@ namespace TodoAPI2.Models
{
var entity = _repository.Get(id);
var i = Mapper.Map<vw_limit_frame_planWithSelectionViewModel>(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;