#!python
#coding:utf-8
'''
对一个字符串进行重新排序
'''
s = "string"
l = list(s)
#顺序排列
l.sort()
s = "".join(l)
print s

print "\n"
#倒序排列
l=reversed(l)
s = "".join(l)
print s

'''
ginrst


tsrnig
'''

5c64f7e9009df31d1821ebffcf30477b65a6470d
#!python
#coding:utf-8
'''
对一个字符串进行重新排序
'''
s = "string"
l = list(s)
#顺序排列
l.sort()
s = "".join(l)
print s

print "\n"
#倒序排列
l=reversed(l)
s = "".join(l)
print s

'''
ginrst


tsrnig
'''
