Live data from Hacker News

When I say “alphabetical order”, I mean “alphabetical order”

sebastiano.tronto.net

71–80 of 385 posts

Re: When I say “alphabetical order”, I mean “alphabetical order”

#71

I agree with Microsoft/Google/KDE's order. The author's situation is extremely rare, and the situation where someone wants "10" to be before "9" is far more common. Moreover, desktops don't label this sorting "alphabetical" (E: and it would really be "lexicographic"*), they label it "by name" (an informal criteria), so technically they're not lying. > I miss the time when computers did what you told them to, instead…

> and the situation where someone wants "10" to be before "9" is far more common. I guess you mean "after"? Otherwise it seems to me you're agreeing with OP. > desktops don't label this sorting "alphabetical" (E: and it would really be "lexicographic"*), they label it "by name" (an informal criteria), so technically they're not lying. FYI the more formal name for the "by name" order is "natural sort order".

> I guess you mean "after"? Otherwise it seems to me you're agreeing with OP.

Depends on which direction you're sorting in, no?

Re: When I say “alphabetical order”, I mean “alphabetical order”

#72
post #61

By the way, there seems to be a "standard" way to sort strings: > Unicode Technical Report #10 also specifies the Default Unicode Collation Element Table (DUCET). This data file specifies a default collation ordering. https://en.wikipedia.org/wiki/Unicode_collation_algorithm I assume this mainly aims at giving a reasonable compromise between the different dictionary and phone book sorting rules of various languages (…

> I assume this also puts "Alice2" before "Alice10".

It doesn't (per https://www.unicode.org/reports/tr10/#Non-Goals):

  > 1.9.2 Non-Goals
  >
  > The Default Unicode Collation Element Table (DUCET) explicitly does not provide for the following features:
  > [ ... ]
  > Numeric formatting: numbers composed of a string of digits or other numerics will not necessarily sort in numerical order.

Re: When I say “alphabetical order”, I mean “alphabetical order”

#73

This is reminding me of the whole "Worse is better" essay and debate: https://news.ycombinator.com/item?id=27916370 The author wants the "worse" sort, one based on ASCII/Unicode codepoints, without any intelligence for numbers that 99% of GUI users want. For their purposes, they've assumed something about the implementation, to the point that a convenience feature is actually a misfeature for them. But the author her…

> The author wants the "worse" sort, one based on ASCII/Unicode codepoints, without any intelligence for numbers that 99% of GUI users want.

I want the author's opinion on how caplital and lowercase letters should be sorted. Do they follow strict ASCII/Unicode codepoints, or do they normalize into actual alphabetical order and sort upper/lower within each letter?

Re: When I say “alphabetical order”, I mean “alphabetical order”

#75
post #72
post #61

By the way, there seems to be a "standard" way to sort strings: > Unicode Technical Report #10 also specifies the Default Unicode Collation Element Table (DUCET). This data file specifies a default collation ordering. https://en.wikipedia.org/wiki/Unicode_collation_algorithm I assume this mainly aims at giving a reasonable compromise between the different dictionary and phone book sorting rules of various languages (…

> I assume this also puts "Alice2" before "Alice10". It doesn't (per https://www.unicode.org/reports/tr10/#Non-Goals ): > 1.9.2 Non-Goals > > The Default Unicode Collation Element Table (DUCET) explicitly does not provide for the following features: > [ ... ] > Numeric formatting: numbers composed of a string of digits or other numerics will not necessarily sort in numerical order.

Oh, that surprises me.

Re: When I say “alphabetical order”, I mean “alphabetical order”

#77
post #60

Earlier quoted context omitted.

I'm not sure I agree. I think I could be convinced if there was a unique and universal representation for numeric values using characters. But we have so many textual representations of numeric values that I'm assuming the "mind-reading" goodness only works for a small subset. And the subset will be somewhat intuitive for developers but unlikely to be so for non-technical people. For example, does the order handle nu…

Are filenames likely to include those representations? I feel like probably not (can you even include commas in Windows filenames?) More to the point of the article--if you want things sorted by date, sort by date. I think most laypeople aren't looking at long CHAR1234_5678 filenames anyway, they're looking at thumbnails and dates.

> can you even include commas in Windows filenames?

Yes.

> Use any character in the current code page for a name, including Unicode characters and characters in the extended character set (128–255), except for the following: The following reserved characters:

> (greater than)

: (colon)

" (double quote)

/ (forward slash)

\ (backslash)

| (vertical bar or pipe)

? (question mark)

* (asterisk)

https://learn.microsoft.com/en-us/windows/win32/fileio/namin...

Re: When I say “alphabetical order”, I mean “alphabetical order”

#78

I agree with Microsoft/Google/KDE's order. The author's situation is extremely rare, and the situation where someone wants "10" to be before "9" is far more common. Moreover, desktops don't label this sorting "alphabetical" (E: and it would really be "lexicographic"*), they label it "by name" (an informal criteria), so technically they're not lying. > I miss the time when computers did what you told them to, instead…

>You may be looking at that time through rose-tinted glasses.

Nope, regarding what he talks about, the time was rose-tinted itself.

Re: When I say “alphabetical order”, I mean “alphabetical order”

#79
post #60

I agree with Microsoft/Google/KDE's order. The author's situation is extremely rare, and the situation where someone wants "10" to be before "9" is far more common. Moreover, desktops don't label this sorting "alphabetical" (E: and it would really be "lexicographic"*), they label it "by name" (an informal criteria), so technically they're not lying. > I miss the time when computers did what you told them to, instead…

I'm not sure I agree. I think I could be convinced if there was a unique and universal representation for numeric values using characters. But we have so many textual representations of numeric values that I'm assuming the "mind-reading" goodness only works for a small subset. And the subset will be somewhat intuitive for developers but unlikely to be so for non-technical people. For example, does the order handle nu…

Ah, the classic filenames with decimal points and scientific notation in them, so common...

Re: When I say “alphabetical order”, I mean “alphabetical order”

#80
Renaming things to make them queue correctly (I usually couldn't care less about visual sorting, I use a terminal) is by far my #1 task by LoC and frequency of occurence, and by far the most annoying. Metadata can be very helpful to obviate this issue, but it usually just leads to another problem where you now need metadata editors and readers in addition to the "user-visible" name metadata. It's frustrating.
Post reply on HN