You could put all the dictionary keys in an array, sort the array, then loop over the array to get keys in order.
set array size to (0,1,1)
dictionary: for each key
--- array: push key to end
array: sort
array: for each x
--- dictionary: get array.curValue