Re: Sorting and spaces.

2018-05-31 Thread Chris Angelico
On Fri, Jun 1, 2018 at 6:51 AM, Paul wrote: > In the US, at least, spaces should sort before letters. > > MRAB brought up an important point. It depends on your purpose, of course, > but having all the capitalized-beginning items appear separately from all > of the lower-cased-beginning items can

Re: Sorting and spaces.

2018-05-31 Thread Paul
In the US, at least, spaces should sort before letters. MRAB brought up an important point. It depends on your purpose, of course, but having all the capitalized-beginning items appear separately from all of the lower-cased-beginning items can be very annoying to a user. -- https://mail.python.or

Re: Sorting and spaces.

2018-05-31 Thread Peter Otten
Tobiah wrote: > I had a case today where I needed to sort two string: > > ['Awards', 'Award Winners'] > > I consulted a few sources to get a suggestion as to > what would be correct. My first idea was to throw them > through a Linux command line sort: > > Awards > Award Winners > > Then I did

Re: Sorting and spaces.

2018-05-31 Thread MRAB
On 2018-05-31 15:18, Tobiah wrote: I had a case today where I needed to sort two string: ['Awards', 'Award Winners'] I consulted a few sources to get a suggestion as to what would be correct. My first idea was to throw them through a Linux command line sort: Awards Awa

Sorting and spaces.

2018-05-31 Thread Tobiah
I had a case today where I needed to sort two string: ['Awards', 'Award Winners'] I consulted a few sources to get a suggestion as to what would be correct. My first idea was to throw them through a Linux command line sort: Awards Award Winners Then I did some Googling