doc: french doc "développez en Nit"
[nit.git] / doc / developpez / modules / listings / sorter1_c.nit
1 var tab = ["a", "c", "b"] # Un tableau non trié
2
3 print tab # acb
4
5 var sorter = new ComparableSorter[String] # On instancie le sorter ComparableSorter en précisant le type que l'on veut trier, ici des String
6
7 sorter.sort(tab) # On trie le tableau
8
9 print tab # abc