Question
Structure Soting Problem
I have a structure called stcSpecialties. I'm trying to loop
over the stucture and display it in ABC order. When I cfdump the
structure it's in ABC order, but when I loop over it, it's not. I'm
assuming CF must be auto sorting the stuct when doing a dump. How
can I replicate this? I tried StructSort but I must be using it
wrong. Here's a sample of the structure when I cfdump it:
Name = Value
------------------------------------------------
AmbulanceTransport = Ambulance Transport|3
BurnUnit = Burn Unit|4
CardiacCareUnit = Cardiac Care Unit|115
CardiacCathLab = Cardiac Cath Lab|21
CardiacIntensiveCareUnit = Cardiac Intensive Care Unit|7
CardiovascularIntensivecare = Cardiovascular Intensive care|48
but when I use the code below I get;
Medical Intensive Care Unit (49)
Gynechology (7)
Director (1)
Cardiac Intensive Care Unit (7)
Long Term Care (3)
IV Therapy (1)
Geriatrics (15)
Stepdown (74)
FYI, the value of the structure keys is a | delimeted list so I can display the actual name of the specialty which is the first list item and then the count which is the second list item
Name = Value
------------------------------------------------
AmbulanceTransport = Ambulance Transport|3
BurnUnit = Burn Unit|4
CardiacCareUnit = Cardiac Care Unit|115
CardiacCathLab = Cardiac Cath Lab|21
CardiacIntensiveCareUnit = Cardiac Intensive Care Unit|7
CardiovascularIntensivecare = Cardiovascular Intensive care|48
but when I use the code below I get;
Medical Intensive Care Unit (49)
Gynechology (7)
Director (1)
Cardiac Intensive Care Unit (7)
Long Term Care (3)
IV Therapy (1)
Geriatrics (15)
Stepdown (74)
FYI, the value of the structure keys is a | delimeted list so I can display the actual name of the specialty which is the first list item and then the count which is the second list item
