[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: table.sort gives wrong result on partially ordered set
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 4 Jan 2021 10:25:26 -0300
> $ lua
> Lua 5.4.2 Copyright (C) 1994-2020 Lua.org, PUC-Rio
> > nan = 0/0
> > t = {nan, nan, 20, 10}
> > table.sort(t)
> > print(table.concat(t, ", "))
> -nan, 20, -nan, 10
Thanks for the report.
-- Roberto