table.SortByKey
Örnek
Fonksiyonun örnek kullanımı.
local t = {}
t['h'] = 2 -- En düşük değer
t['a'] = 150 -- En yüksek değer
t['x'] = 30
PrintTable( table.SortByKey( t ) )
PrintTable( table.SortByKey( t , true ) )
Çıktı:
1 = a
2 = x
3 = h
1 = h
2 = x
3 = a
Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord