2
Answers

How to sort struct fields data?

Ask a question
How can I sort all the data in the fields in the following struct, sorted by Score?

public struct HighScoreData
{
  public string[] Name;
  public int[] Score;
  public int[] Stage;
  public int Count; 

  public HighScoreData(int count)
  {
  Name = new string[count];
  Score = new int[count];
  Stage = new int[count];
  Count = count;
  }
}


Answers (2)