我有一个List,我想通过升序值对CategoryCounter,GroupCounter,QuestionCounter进行排序。我怎么能做到这一点?
public class CustomList
{
private int _categorySequence = 0;
private int _groupSequence = 0;
private int _questionSequence = 0;
private string _name = String.Empty;
public string Name
{
get { return _name; }
set { _name = value; }
}
public int CategoryCouter
{
get { return _categorySequence; }
set { _categorySequence = value; }
}
public int GroupCounter
{
get { return _groupSequence; }
set { _groupSequence = value; }
}
public int QuestionCounter
{
get { return _questionSequence; }
set { _questionSequence = value; }
}
}