hashtableList.Sort( delegate (Hashtable a, Hashtable b) { DateTime dateTime1 = (DateTime)a["bereply"]["Date_time"]; DateTime dateTime2 = (DateTime)b["bereply"]["Date_time"]; return dateTime2.CompareTo(dateTime1); } );
时间: 2024-09-27 04:36:08
hashtableList.Sort( delegate (Hashtable a, Hashtable b) { DateTime dateTime1 = (DateTime)a["bereply"]["Date_time"]; DateTime dateTime2 = (DateTime)b["bereply"]["Date_time"]; return dateTime2.CompareTo(dateTime1); } );