def listing(lst):
lst_new = []
lst1 = []
for i in lst:
if i not in lst1:
lst1.append(i)
for i in lst1:
lst.remove(i)
lst_new += lst1
while lst:
lst_temp = []
r = 0
while r != len(lst1):
for y in lst1:
if y in lst:
lst_temp.append(y)
r += 1
else:
r += 1
for i in lst_temp:
lst.remove(i)
lst_new += lst_temp
return lst_new