public readonly int CompareTo(SaveDataAttribute other) { int titleIdComparison = ProgramId.CompareTo(other.ProgramId); if (titleIdComparison != 0) { return(titleIdComparison); } int typeComparison = ((int)Type).CompareTo((int)other.Type); if (typeComparison != 0) { return(typeComparison); } int userIdComparison = UserId.CompareTo(other.UserId); if (userIdComparison != 0) { return(userIdComparison); } int saveDataIdComparison = StaticSaveDataId.CompareTo(other.StaticSaveDataId); if (saveDataIdComparison != 0) { return(saveDataIdComparison); } int rankComparison = ((int)Rank).CompareTo((int)other.Rank); if (rankComparison != 0) { return(rankComparison); } return(Index.CompareTo(other.Index)); }