C# 有没有办法按升序对列表进行排序?

C# 有没有办法按升序对列表进行排序?,c#,json,.net,C#,Json,.net,下面是我用json转换的列表 “{”Calls:“{”call_id“:91402,“call_info_id:”[112136138150146121131142134139122151130143144141137135128140132124113127133149145],“call_info_timing__id”:10,“Dateof birth:”[2000-04-03T00:00:00”,“2020-09-28T10:40:30”,“2020-09-28T10:40:30”,“2

下面是我用json转换的列表

“{”Calls:“{”call_id“:91402,“call_info_id:”[112136138150146121131142134139122151130143144141137135128140132124113127133149145],“call_info_timing__id”:10,“Dateof birth:”[2000-04-03T00:00:00”,“2020-09-28T10:40:30”,“2020-09-28T10:40:30”,“2020-09-28T10:40:30”,“2000-04-03T00:00:00”,“2000-04-03T00:00:00”,“40:30”,“2020-09-28T10:40:30”,“2020-09-28T10:40:30”,“2020-09-28T10:40:30”,“2000-04-03T00:00:00”,“2020-09-28T10:40:30”,“2000-04-03T00:00:00”,“2020-09-28T10:40:30”,“2020-09-28T10:40:30”,“2020-09-28T10:40:30”,“2000-04-04-03T00:00”,“2020-09-09-28T10:40:30”,“2020-09-10:40-2020-09-28T10:40:00”,“2000-09-0300:00”,“2000-04-03T00:00:00”,“2020-09-28T10:40:30”,“2020-09-28T10:40:30”,“2020-09-28T10:40:30”,“2020-09-28T10:40:30”],{“呼叫id”:91403,“呼叫信息id:[11411619191152120125123147126148115117],“呼叫信息时间”id:11,“出生日期”:[“2000-04-03T00:00:00:00”,“2020-09-28T10:40:30”,“2000-04-03T00:00-10:00”,“2020-40:40”“2020-09-28T10:40:30”、“2020-09-28T10:40:30”、“2020-09-28T10:40:30”、“2020-09-28T10:40:30”、“2020-09-28T10:40:30”、“2000-04-03T00:00:00”、“2000-04-03T00:00:00”],“状态码”:1}”

我的班级如下:

 public partial class get_active_call_info_id_Result
    {
        public int call_id { get; set; }
        public int call_info_id { get; set; }
        public int call_info_timing_id { get; set; }
        public System.DateTime dateOfBirth { get; set; }
      
    }

        public partial class get_active_call_info_ids
    {
        public int call_id { get; set; }
        public List<int> call_info_id { get; set; }
        public int call_info_timing_id { get; set; }
        public List<System.DateTime> dateOfBirth { get; set; }
        

        public get_active_call_info_ids()
        {
            call_info_id = new List<int>();
            dateOfBirth = new List<System.DateTime>();
        }
    }
public分部类获取\u活动\u调用\u信息\u id\u结果
{
公共int调用_id{get;set;}
public int call_info_id{get;set;}
公共int调用信息定时id{get;set;}
public System.DateTime出生日期{get;set;}
}
公共部分类获取\u活动\u调用\u信息\u ID
{
公共int调用_id{get;set;}
公共列表调用\u info\u id{get;set;}
公共int调用信息定时id{get;set;}
出生日期的公共列表{get;set;}
公共获取\活动\呼叫\信息\标识()
{
调用_info_id=new List();
dateOfBirth=新列表();
}
}

是否有一种方法可以按升序对每个
call\u info\u id
和每个
call\u id
中的corelated
dateOfBirth
进行排序?

更改setter和getter ie如何

private List<int> _call_info_id;
public List<int> call_info_id 
{ 
    get{
        return _call_info_id.OrderBy(a=>a).ToList();
    }
    set{
        _call_info_id = value;
    }
}
private List\u call\u info\u id;
公共列表呼叫\u信息\u id
{ 
得到{
return _call_info_id.OrderBy(a=>a.ToList();
}
设置{
_call_info_id=值;
}
}