C#
public void ss()
{
Encoding ascii = Encoding.ASCII;
string[] str ={ "r", "e", "z" };
string t= "";
for (int i = 1; i <3; i++)
{
for (int j = 2; j >=i; j--)
{
Byte[] aa = ascii.GetBytes(str[j - 1]);
int s1 = (int)aa[0];
Byte[] bb = ascii.GetBytes(str[j]);
int s2 = (int)bb[0];
if (s1 < s2)
{
t = str[j-1];
str[j-1] = str[j];
str[j] = t;
}
}
}
this.textBox1.Text = str[0]+str[1]+str[2];
}