Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18945

Re: NaN, Null, and Sorting

Date 2012-01-13 21:06 +0000
From MRAB <python@mrabarnett.plus.com>
Subject Re: NaN, Null, and Sorting
References <4F108050.4030407@stoneleaf.us> <CAPTjJmr2VT_Z_HpvRbY1yQAmh4drkjHZjxFa1aeqR5d8cSn3tw@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4730.1326488798.27778.python-list@python.org> (permalink)

Show all headers | View raw


On 13/01/2012 19:58, Chris Angelico wrote:
> On Sat, Jan 14, 2012 at 6:04 AM, Ethan Furman<ethan@stoneleaf.us>  wrote:
>>  So I am strongly leaning towards implementing the comparisons such that Null
>>  objects are less than other objects so they will always sort together.
>
> This is a perfectly plausible view, and is the one adopted by SQL (I'm
> pretty sure the "NULLS FIRST" / "NULLS LAST" clause is standard - you
> get to choose whether they're less than everything or more than
> everything).
>
+1

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: NaN, Null, and Sorting MRAB <python@mrabarnett.plus.com> - 2012-01-13 21:06 +0000

csiph-web