def sort(LI):
    G = LI
    ps = 0
    while ps < len(LI)-1:
        if G[ps] > G[ps+1]:
            G[ps],G[ps+1] = G[ps+1],G[ps]
            ps = 0
        ps+=1
    return G

print(sort([1,1,4,5,1,4]))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: