How can i sort the player data from my xml document by score?

if (File.Exists (filepath)) {
xmlDoc.Load (filepath);

			foreach(XmlElement node in xmlDoc.SelectNodes("Players/Player"))
			{
				Player tempPlayer = new Player();
				tempPlayer.Id = int.Parse(node.GetAttribute("id"));
				tempPlayer.name = node.SelectSingleNode("name").InnerText;
				tempPlayer.score = int.Parse(node.SelectSingleNode("score").InnerText);
				Players.Add(tempPlayer);
				Debug.Log (tempPlayer.score);
				displayPlayerData(tempPlayer);
			}
		}

Solved! I did this instead:

string filepath = Application.dataPath + @"/StreamingAssets/NerfHighscore.xml";
		XDocument xmlDoc = XDocument.Load(filepath);

		XDocument output = new XDocument(new XElement("xml", xmlDoc.Root.Elements("Player").OrderByDescending(node => node.Element("score").Value)));

		var players = output.Descendants ("Player");

		foreach (var item in players)
		{
			playerName = item.Element ("name").Value;
			playerScore = item.Element ("score").Value;
			Debug.Log(playerName + "		" + playerScore);
		}