Utilisation fonction de comparaison

This commit is contained in:
Jean-Loup Beaussart (jamesmagnus) 2015-03-11 17:21:52 +01:00
parent 60db55841f
commit b9fc8f34d9

View file

@ -94,7 +94,7 @@ def tri_insertion_base(l, n):
aux = l[n]
k=n
while k >= 1 and l[k-1] > aux:
while k >= 1 and comp(l[k-1], aux)== 1:
l[k] = l[k-1]
k -= 1