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); } );