public int CompareTo(BeatmapInfo other) { using (Beatmap beatmapThis = GetBeatmap()) using (Beatmap beatmapOther = other.GetBeatmap()) { if (beatmapThis == null) { return(1); } if (beatmapOther == null) { return(-1); } return(beatmapThis.CompareTo(beatmapOther)); } }