Trier une liste des numéros dans Python
numbers = [1, 5, -2, 4]
numbers.sort()
print(numbers)
Cruel Crossbill
numbers = [1, 5, -2, 4]
numbers.sort()
print(numbers)
>>> sorted(A, key = lambda i: B.index(i[0]))
[[6, 1], [1, 3], [3, 5]]
numbers = [1, 5, -2, 4]
numbers.sorted()
print(numbers)
# [-2, 1, 5, 4]