local numbers = _objectWrappers:wrap(_arrays:arrayOf(_plugins:loadClass("java.lang.Integer"), 5, 2, 4, 1, 3)) -- 对数组进行排序 numbers:sort(0, numbers:count()) -- 排序后的数组: [1, 2, 3, 4, 5] numbers:forEach(function(it) _console:log(it) end)