我有一个列表,我想按升序对 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; }
}
}