C# List Sort

            caseList.Sort((a, b) =>
            {
                if (Convert.ToDateTime(a.ACTIVITY_IN_DATE) > Convert.ToDateTime(b.ACTIVITY_IN_DATE))
                { return -1; }
                else
                {
                    return 1;
                }
            });

点击体验 免开发 平台