From TableLibraryTutorial of lua-users.org. table.sort(table [, compFunc]) sort(table[, compFunc]) Sort the elements of a table in-place (i.e. alter the table). > t = { 3,2,5,1,4 } > table.sort(t) > = table.concat(t, ", ") -- display sorted values 1, 2, 3, 4, 5 If the table has a specified size only the range specified is sorted, e.g., > t = { 3,2,5,1,4 } > table.sort(t, function(a,b) return a = table.concat(t, ", ") 1, 2, 3, 4, 5
| Graph IRI | Count |
|---|---|
| http://dbkwik.webdatacommons.org | 4 |