public int Compare(object a, object b) { HashtableRecord r1 = (HashtableRecord)a; HashtableRecord r2 = (HashtableRecord)b; return ((IComparable)r1["Name"]).CompareTo(r2["Name"]); } }