我有一个List,我需要按DateTime排序,类MyStuff看起来像:
public class MyStuff { public int Type {get;set;} public int Key {get;set;} public DateTime Created {get;set;} }
我需要能够通过Created(DateTime)字段对集合List进行排序.
c# sorting
c# ×1
sorting ×1