Lua sort

This article is tagged with: Lua sort and lua

lua sort

local t = {1, 2, 3, 4, 5};
table.sort(t, function(a, b) return a < b end);

This article is tagged with: Lua sort and lua