Considering this example, I find no flaw here...
def sorting():
holder=[]
t=int(input())
for i in range(t):
n=int(input())
holder.append(n)
holder.sort()
for i in holder:
print i
if __name__='__main__':
sorting()
What's wrong with this code? I get perfect results in my system but, not here.