bug#40226: sort: expected sort order when -c in use

2020-03-25 Thread Richard Ipsum
Hi, I'm trying to understand something and thought it would be good to ask here. I get different results for a case-insensitive sort using -c. My understanding is that -f should lead to lower case characters with upper case equivalents being converted to their upper case equivalents. This

bug#40226: sort: expected sort order when -c in use

2020-03-25 Thread Eric Blake
On 3/25/20 12:37 PM, Richard Ipsum wrote: Hi, I'm trying to understand something and thought it would be good to ask here. I get different results for a case-insensitive sort using -c. My understanding is that -f should lead to lower case characters with upper case equivalents being converted

bug#40226: sort: expected sort order when -c in use

2020-03-25 Thread Eric Blake
On 3/25/20 3:02 PM, Richard Ipsum wrote: On Wed, Mar 25, 2020 at 01:17:19PM -0500, Eric Blake wrote: On 3/25/20 12:37 PM, Richard Ipsum wrote: [snip] See the difference? In the first case, sort is doing its default case-insensitive comparison of the entire line (because you passed -f but

bug#40226: sort: expected sort order when -c in use

2020-03-25 Thread Richard Ipsum
On Wed, Mar 25, 2020 at 01:17:19PM -0500, Eric Blake wrote: > On 3/25/20 12:37 PM, Richard Ipsum wrote: [snip] > > See the difference? In the first case, sort is doing its default > case-insensitive comparison of the entire line (because you passed -f but > not -k), AND a stability comparison of