ok finally figured this out
a=(5,2,2,1,4,4,1,6,34,34,34,34,34,34,65,5,32,1,12,34,63,34,34,7,5,6)
b=()
c=()
e=()
d=0
f=0
for n in range(0,len(a)):
value = a[n]
d=0
f=0
for m in range(0,len(a)):
for j in range(0,len(a)):
for k in range(0,len(b)):
if b[k]==value:
f+=1
if f==1:
break
if a[j] >= value:
d+=1
if d==len(a)-m:
b+=(value,)
d=0
f=0
t=(len(b))
while t>0:
for m in range(0,len(b)):
value = b[m]
for y in range(0,len(b)):
if b[y] >= value:
d+=1
if d==len(b):
c+=(value,)
f+=1
if f<1:
e+=(value,)
d=0
f=0
b=e
e=()
t-=1
works if you had the same question, although it probably could be a lot simpler