bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sort ignores dashes?


From: Corin Hartland-Swann
Subject: sort ignores dashes?
Date: Mon, 4 Dec 2000 16:23:58 +0000 (GMT)

Hi there,

I assume that this is intended behaviour and not a bug, but I couldn't
find it documented, and wanted to know how to disable it.

Summary: When sorting a list of word with dashes in them, sort appears to
ignore the dashes (textutils v2.0).

The following file is not changed by sort:

    a
    a-b
    ab
    a-c
    ac

I want to sort it like this:

    a
    a-b
    a-c
    ab
    ac

Because ASCII '-' is smaller than alphabetical chars.

Is there any way to make sort behave like this?

Regards,

Corin

/------------------------+-------------------------------------\
| Corin Hartland-Swann   | Direct: +44 (0) 20 7544 4676        |
| Commerce Internet Ltd  | Mobile: +44 (0) 79 5854 0027        |
| 22 Cavendish Buildings |    Tel: +44 (0) 20 7491 2000        |
| Gilbert Street         |    Fax: +44 (0) 20 7491 2010        |
| Mayfair                |    Web: http://www.commerce.uk.net/ |
| London W1K 5HJ         | E-Mail: address@hidden        |
\------------------------+-------------------------------------/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]