1
0
mirror of synced 2024-12-11 07:16:00 +01:00
OpenTaiko/TJAPlayer3/Songs/C曲リストノードComparers/C曲リストノードComparerSubtitle.cs

19 lines
555 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections.Generic;
namespace TJAPlayer3.C曲リストードComparers
{
internal sealed class C曲リストードComparerSubtitle : IComparer<C曲リストード>
{
private readonly int _order;
public C曲リストードComparerSubtitle(int order)
{
this._order = order;
}
public int Compare(C曲リストード n1, C曲リストード n2)
{
return _order * n1.strサブタイトル.CompareTo(n2.strサブタイトル);
}
}
}