string temp = "234.157.698.0";
List<int> list = new List<int>();
for (int i = 0; i < temp.Length; i++)
{
try
{
string t = temp[i].ToString();
list.Add(Convert.ToInt32(t));
}
catch (Exception)
{
continue;
}
}
list.Sort();
Response.Write(list[0]);
for (int i = list.Count-1; i >0; i--)
{
Response.Write(list[i].ToString());
}
···
···