[Tuglist] Sorting notaion
H.S.Rai
tuglist@tug.org.in
Tue, 13 Aug 2002 19:25:37 +0530 (IST)
I tabulated noations in a tex file, which I wish to sort
in following manner:
First all greek symbols, i.e symbol starting with \ (e.g.
\alpha etc ) then in alphanumerical order with lower case on
top. Following should be list of sorted notation ( Please
treat every variable in new line, I typed in one line to
save number of lines )
\alpha aa aA Aa b B c1
On sorting unsorted data with "sort", I get result as shown
below. It place "\c" next to "c".
Is this affected by LC_COLLATE, if yes, how to manipulate
it? and if this is the only way, then it may be difficult
for me as I know little about such things.
Unsorted
------------------
B b B c \A D e a \c
Sorted I get with "sort" command
---------------------------------
a \A b B B c \c D e
Desirable
-----------------
\A \c a b B B c D e
Is "sort" the only utility to do this?
Any other trick?
--
H.S.Rai