time and space

time and space

  • 1.7k
  • 31
  • 57.3k

How to sort struct fields data?

Sep 6 2011 8:15 AM
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)