04:42
<zewt>
apparently youtube now eats all of my browser hotkeys, awesome
04:42
<zewt>
alt-d? ctrl-t? nope sorry
13:54
<veosotano>
hello
22:27
<Hixie>
how should "01.5b" vs "1.50a" sort relative to each other
22:27
<Hixie>
?
22:28
<Hixie>
or maybe "01.5b", "1.50a", and "2e-5" would be better examples
22:28
<Hixie>
clearly the third of those comes first, i hope we all agree
22:28
<Hixie>
but which of the next two? and why?
22:53
<zewt>
for direct sorts, with nothing to give a particular interpretation, i'd go with a simple sort, so 01.5b < 0.2 < 1.50a
22:53
<zewt>
er, didn't check the sort order on . above, but you get what i mean
22:54
<zewt>
"natural" sorts are useful ("foo 1 bar" < "foo 2 bar" < "foo 10 bar") are useful, but probably not always wanted
23:00
<zewt>
(maybe in this case a natural sort might be a better default, if it's not always known what the type of the data is, but i'd hope there'd still be a plain sort available)
23:55
<Hixie>
well that's an interesting point
23:55
<Hixie>
hmmmmm
23:55
<Hixie>
i don't want to try to specify a natural sort, that seems like a lot of work :-P