3 Improved formatting, wording (grammar), capitalization, spelling, and mis-quoted word.
source | link

What's the default order of linuxLinux sort?

For a long period I thinkthought the default behavior of sortthe sort program iswas using ASCII order. However, when I input the following lines into sortsort without any arguments:

#
@

I got:

@
#

But according to the ASCII table, ## is 35 and @@ is 64. Another example is:

A
a

And the output is:

a
A

Anybody canCan anybody explain this? By the way, what is 'directory'dictionary-order' when using sord -dsort -d?

What's the default order of linux sort?

For a long period I think the default behavior of sort program is using ASCII. However, when I input the following lines into sort without any arguments:

#
@

I got:

@
#

But according to the ASCII, # is 35 and @ is 64. Another example is:

A
a

And the output is:

a
A

Anybody can explain this? By the way, what is 'directory-order' when using sord -d?

What's the default order of Linux sort?

For a long period I thought the default behavior of the sort program was using ASCII order. However, when I input the following lines into sort without any arguments:

#
@

I got:

@
#

But according to the ASCII table, # is 35 and @ is 64. Another example is:

A
a

And the output is:

a
A

Can anybody explain this? By the way, what is 'dictionary-order' when using sort -d?

2 edited tags
| link
    Post Migrated Here from stackoverflow.com
1
source | link

What's the default order of linux sort?

For a long period I think the default behavior of sort program is using ASCII. However, when I input the following lines into sort without any arguments:

#
@

I got:

@
#

But according to the ASCII, # is 35 and @ is 64. Another example is:

A
a

And the output is:

a
A

Anybody can explain this? By the way, what is 'directory-order' when using sord -d?