On Mon, Oct 5, 2009 at 11:12 AM, O. O. <[email protected]> wrote:
> Why is this different from the first case. I only expected x and y by
> the above mentioned values, and it does not seem to sort.
>
> I would be grateful if someone could help me sort this.

You're running into a locale issue.

$ sort try_sort1.txt
a       0-1     b       c
a       0:1     b       c
a       0-1     d       e

$ LC_COLLATE=C sort try_sort1.txt
a       0-1     b       c
a       0-1     d       e
a       0:1     b       c

$ LC_ALL=C sort try_sort1.txt
a       0-1     b       c
a       0-1     d       e
a       0:1     b       c

For details, 'man sort'[1]  and see the warning about locale.

[1] http://linux.die.net/man/1/sort

Regards,
- Robert

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---

Reply via email to