I want to prepare an index of symbols for a book I'm writing (using the memoir class). There is an obvious problem of how you order the symbols. Since many of them are non-alphabetic, I think that the order of appearance in the book is the best idea. I skimmed through the man page for makeindex, but didn't find any option for that (and I don't want to do things like \index{01@symbol}, \index{02@symbol} etc., for obvious reasons).
Bonus points for a solution where non-alphabetic symbols appear first (as a group), sorted in the order of appearance, and alphabetic ones after them, sorted lexicographically, like in
Symbols
=
<
(,)
A
angle
apple
arrgh
B
Banach space
banana

\index{aaaaaaa\arabic{symbolcounter} @\somesymbol}\stepcounter{symbolcounter}? – Symbol 1 Sep 18 '14 at 14:49\index{cos}twice it produces two "cos"'s in your index. And if you start the counter from1, you cannot predict which goes first:1,13, or123– Symbol 1 Sep 18 '14 at 16:16