public int CompareTo(object obj) { SessionData s = obj as SessionData; return s == null ? 1 : this.SessionId.CompareTo(s.SessionId); }