How to preserve order of objects in a Group - or an alternative?

Hi all,

I have a python script that exports the name of and objects in each group. I’m converting the output to some data for a Java Application. So far so good.

Problem is, I need to write the list of objects in each group in the order they were selected, NOT in alphabetical order as Blender seems to arrange them once grouped.

Is there any way to preserve order while grouping objects, or if not, could anyone suggest a different technique to grouping which will enable me to associate various objects in discrete groups (like grouping), but preserve some sort of order based on the order they objects were selected?

Thanks in advance.