Different sorting of radio buttons

Hi, I’m using a script to import rehearsal recordings for our band.
I have a dialog that allows me to pick certain things in case they are different for certain songs.
The dialog, however, shows up differently almost every time.



As you can see, the sequence of the radio button changes.
Is there a way, to make them stay in a given sequence?
Here is the LUA-excerpt for them:

			{
				type = "radio",
				key = "voxMarkus",
				title = "Markus",
				values = {
					["Lead"] = 1,
					["Background"] = 2,
					["Off"] = 3
				},
				default = "Lead"
			},
			{
				type = "radio",
				key = "voxMarkus2",
				title = "Markus2",
				values = {
					["Lead"] = 1,
					["Background"] = 2,
					["Off"] = 3
				},
				default = "Off"
			},
			{
				type = "radio",
				key = "voxRalf",
				title = "Ralf",
				values = {
					["Lead"] = 1,
					["Background"] = 2,
					["Off"] = 3
				},
				default = "Background"
			},

Sadly no. Dictionary tables are not ordered (they use a hash function and sorting depends on the hash of the key).

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.