Can you please specify which order do you want the graph to display?
Can you please elaborate what did you mean by this data doesn’t consider the counts but the values? I don't really understand this point.
Your code doesn't generate the any random order, rather they are in perfect alphabetical order.
I may have misunderstood you completely, but if you want different order of kinds for different bars corresponding to types, I personally don't think that graph makes much sense. Obviously, I can be wrong here, as it is somehow subjective.
Normally, these graphs doesnt consider more than 1 axis and uses count as the value to display the share.
In this case, we have x and y axis instead of just x axis i.e type
(in that case, county will be ABC: 4, BCD: 3, DEF: 2)