wave ordering and wavelist command

I have several hundred waves labeled a0,a1,a3...etc. When ever I try to order them igor wants to order them in an odd way(i.e. 0,1,10,100,101...) not in the way I want to order them(0,1,2,3,4...). Is there a way to make igor order them in what I would consider the logical fashion? The built in way doesnt make sense to me.

And along with this, I am using a string based on the wavelist command

string batchstr=wavelist("a*",";","DIMS:1")

and it is ordering them in the weird way, not the way I want. is there anyway to get the wavelist command to order them in numerical order? not what ever igor is doing now?
SortList should do what you want. The options allow to sort in numerical order/alphanumeric etc. order.
Thomas Braun is right- use SortList with an alphanumeric non-case-sensitive sort (option 16). The WaveList function returns the wave names in the order in which the are listed internally, which right now is in the order in which they were created. In the (far?) future that order might be changed to some sort of hashed order, or some other ordering imposed by high-performance look-up.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
string list = WaveList("a*",";","DIMS:1")
list = SortList(list, ";", 16)          //alpha numeric, non-case sensitive sort