lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2011/4/11 Benoit Germain <bnt.germain@gmail.com>:
> 2011/4/11 唐刚 <tg@legerobot.com>:
>
> local table_sort = table.sort
> table.sort = function( t, ...)
>  table.sort( t, ...)
>  return t
> end
>

erf, much better that way :-)

local table_sort = table.sort
table.sort = function( t, ...)
 table_sort( t, ...)
 return t
end


-- 
Benoit.