WoW:API sort: Difference between revisions

277 bytes added ,  11 October 2006
m
added note about non-numeric key tables being non-sortable with a custom comparison
(Use Lua/Libshortcut template. Change category from "LUA Functions" to "Lua functions".)
m (added note about non-numeric key tables being non-sortable with a custom comparison)
Line 30: Line 30:
  > = table.concat(t, ", ")
  > = table.concat(t, ", ")
  5, 4, 3, 2, 1
  5, 4, 3, 2, 1
----
;''Notes:''
: Sorting tables containing non-numeric keys using a custom comparison function does not work. The function will not get called, and the table will be sorted according to some kind of internal function. --[[User:Tularis|Tularis]] 19:22, 11 October 2006 (EDT)


{{LUA}}
{{LUA}}
Anonymous user