orangehairedboy
Board Regular
- Joined
- Feb 23, 2003
- Messages
- 159
Hi all,
I've looked all through help and searched this board about sorting arrays and Dictionary objects, but I turned up nothing. Does anyone know how to do this?
Here are samples of the 2 types of things I need to sort:
Letters=array("B","U","E","P","H")
to get B,E,H,P,U
and I need to sort this by key:
Dim d
Set d = CreateObject("Scripting.Dictionary")
d.Add "B", 50
d.Add "A", 100
d.Add "D", 75
d.Add "C", 85
to get A,B,C,D
Thanks!
I've looked all through help and searched this board about sorting arrays and Dictionary objects, but I turned up nothing. Does anyone know how to do this?
Here are samples of the 2 types of things I need to sort:
Letters=array("B","U","E","P","H")
to get B,E,H,P,U
and I need to sort this by key:
Dim d
Set d = CreateObject("Scripting.Dictionary")
d.Add "B", 50
d.Add "A", 100
d.Add "D", 75
d.Add "C", 85
to get A,B,C,D
Thanks!