I have a vast document where I have a separate index of dates (really only the year or year range of particular events).
I'm using memoir.
Sometimes the year is known exactly
\index[dates]{1875!Event xyz}
Sometimes the year is a range
\index[dates]{1822--1867!Event abc}
These sort in index as
1822-1897
Event xxxx 77,87
Event pppp 731829-1844
Event zzz 791756
Event xxx2 99
In other words, date ranges sort alphabetically and are separated from the single numeric entries which sort numerically yielding an odd ordering. Is there any way I get numbers to sort alphabetically and not numerically so that I can get ordering
1
1--5
2
3
3--5
4
rather than
1--5
3--5
1
2
3
4
The index entries are via a macro
\newcommand{\indexdate}[2]{#1\index[dates]{#1!{#2}}}
And so a single change to the macro might achieve what I want without having to manually edit every one of a couple of thousands of entries to impose a sort order.
I have hit a roadblock on this one. I don't think a MWE would be of additional use here, but happy to post one.

\index[dates]{1875 @1875!Event xyz}, so that a single year would always sort before a year span. (i'm not sure i understand how 1756 sorts after 1829 in any case.) – barbara beeton Apr 13 '13 at 18:20