``````

In [1]:

org_list = [3, 1, 4, 5, 2]

``````
``````

In [2]:

org_list.sort()
print(org_list)

``````
``````

[1, 2, 3, 4, 5]

``````
``````

In [3]:

print(org_list.sort())

``````
``````

None

``````
``````

In [4]:

org_list.sort(reverse=True)
print(org_list)

``````
``````

[5, 4, 3, 2, 1]

``````
``````

In [5]:

org_list = [3, 1, 4, 5, 2]

``````
``````

In [6]:

new_list = sorted(org_list)
print(org_list)
print(new_list)

``````
``````

[3, 1, 4, 5, 2]
[1, 2, 3, 4, 5]

``````
``````

In [7]:

new_list_reverse = sorted(org_list, reverse=True)
print(org_list)
print(new_list_reverse)

``````
``````

[3, 1, 4, 5, 2]
[5, 4, 3, 2, 1]

``````
``````

In [8]:

``````
``````

In [9]:

new_str_list = sorted(org_str)
print(org_str)
print(new_str_list)

``````
``````

['a', 'b', 'c', 'd', 'e']

``````
``````

In [10]:

new_str = ''.join(new_str_list)
print(new_str)

``````
``````

abcde

``````
``````

In [11]:

new_str = ''.join(sorted(org_str))
print(new_str)

``````
``````

abcde

``````
``````

In [12]:

new_str_reverse = ''.join(sorted(org_str, reverse=True))
print(new_str_reverse)

``````
``````

edcba

``````
``````

In [13]:

org_tuple = (3, 1, 4, 5, 2)

``````
``````

In [14]:

new_tuple_list = sorted(org_tuple)
print(org_tuple)
print(new_tuple_list)

``````
``````

(3, 1, 4, 5, 2)
[1, 2, 3, 4, 5]

``````
``````

In [15]:

new_tuple = tuple(new_tuple_list)
print(new_tuple)

``````
``````

(1, 2, 3, 4, 5)

``````
``````

In [16]:

new_tuple = tuple(sorted(new_tuple_list))
print(new_tuple)

``````
``````

(1, 2, 3, 4, 5)

``````
``````

In [17]:

new_tuple_reverse = tuple(sorted(new_tuple_list, reverse=True))
print(new_tuple_reverse)

``````
``````

(5, 4, 3, 2, 1)

``````