[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: A strange problem with table.sort()
- From: Ketmar Dark <ketmar@...>
- Date: Wed, 25 Jul 2007 16:00:47 +0300
On Wed, 25 Jul 2007 14:56:30 +0200
Alen Ladavac <email@example.com> wrote:
> I have found the cause of this to be in the comparator function. It
> _must_ return false for elements that are equal, otherwise the results
> are just like this: either unsorted array, or array containing nils.
> Perhaps this should be mentioned in the docs?
it is. at least for Lua 5.1.