added comment to the size specific sort that it no longer works in the current version of wow
m (Remove singatures made using ~ in main namespace) |
(added comment to the size specific sort that it no longer works in the current version of wow) |
||
| Line 17: | Line 17: | ||
> = table.concat(t, ", ") -- only specified size is concatenated as well | > = table.concat(t, ", ") -- only specified size is concatenated as well | ||
2, 3, 5 | 2, 3, 5 | ||
;''Warning:'' Setting the range of the sort is no longer possible since table.setn is no longer supported (setting n=3 will not set the size of the table to 3) [[User:Yssaril|Yssaril]] 05:31, 23 March 2008 (UTC) | |||
A comparison function can be provided to customise the element sorting. The comparison function must return a boolean value specifying whether the first argument should be before the second argument in the sequence. The default behaviour is for the < comparison to be made. For example, the following behaves the same as no function being supplied: | A comparison function can be provided to customise the element sorting. The comparison function must return a boolean value specifying whether the first argument should be before the second argument in the sequence. The default behaviour is for the < comparison to be made. For example, the following behaves the same as no function being supplied: | ||