private void sortnumber(string p)
{
char[] a =p.ToCharArray();
int temp = 0;
for (int i = 0; i < p.Length; i++)
{
for (int j = i + 1; j < p.Length; j++)
{
if (a[i] < a[j])
{
temp = a[j];
a[j] = a[i];
a[i] = Convert.ToChar(temp);
}
}
Response.Write(a[i]);
}
{
char[] a =p.ToCharArray();
int temp = 0;
for (int i = 0; i < p.Length; i++)
{
for (int j = i + 1; j < p.Length; j++)
{
if (a[i] < a[j])
{
temp = a[j];
a[j] = a[i];
a[i] = Convert.ToChar(temp);
}
}
Response.Write(a[i]);
}