# t est un tableau var entier n = taille(t) pour i dans [0, n-2] do pour j dans [i+1 : n-1] do si t[i] > t[j] alors échanger( t[i], t[j] )