Attempt to index nil with "Name"

this is my script

local Cubes = {
	[1] = {
		["Name"] = "Common",
		["Rarity"] = 25
	},
	[2] = {
		["Name"] = "Uncommon",
		["Rarity"] = 75
	},
	[3] = {
		["Name"] = "Rare",
		["Rarity"] = 150
	},
	[4] = {
		["Name"] = "Epic",
		["Rarity"] = 250
	},
	[5] = {
		["Name"] = "Legendary",
		["Rarity"] = 400
	},
	[6] = {
		["Name"] = "Mythical",
		["Rarity"] = 500
	},
	[7] = {
		["Name"] = "Extraordinary",
		["Rarity"] = 650
	},
	[8] = {
		["Name"] = "Inferno",
		["Rarity"] = 750
	},
	[9] = {
		["Name"] = "Error",
		["Rarity"] = 800
	},
	[10] = {
		["Name"] = "Nil",
		["Rarity"] = 1000
	},
	[12] = {
		["Name"] = "Blossom",
		["Rarity"] = 1750
	},
	[13] = {
		["Name"] = "Chromatic",
		["Rarity"] = 2000
	},
	[14] = {
		["Name"] = "Astral",
		["Rarity"] = 3000
	},
	[15] = {
		["Name"] = "Monochrome",
		["Rarity"] = 5000
	},
	[16] = {
		["Name"] = "Forcefield",
		["Rarity"] = 7500
	},
	[17] = {
		["Name"] = "Frigid",
		["Rarity"] = 10000
	},
	[18] = {
		["Name"] = "Smile",
		["Rarity"] = 19139125
	},
	[19] = {
		["Name"] = "Camouflage",
		["Rarity"] = 1337
	},
	[20] = {
		["Name"] = "Hypercube",
		["Rarity"] = 25000
	},
	[21] = {
		["Name"] = "Piecube",
		["Rarity"] = 314159
	},
	[22] = {
		["Name"] = "Black Hole",
		["Rarity"] = 50000
	},
	[23] = {
		["Name"] = "Whirlpool",
		["Rarity"] = 17500
	},
	[24] = {
		["Name"] = "Omega",
		["Rarity"] = 56714
	},
	[25] = {
		["Name"] = "Magma",
		["Rarity"] = 66666
	},
	[26] = {
		["Name"] = "Wind",
		["Rarity"] = 2222
	},
	[27] = {
		["Name"] = "Binary",
		["Rarity"] = 20000
	},
	[28] = {
		["Name"] = "Lightmatter",
		["Rarity"] = 30000
	},
	[29] = {
		["Name"] = "Clockwork",
		["Rarity"] = 40000
	},
	[30] = {
		["Name"] = "Starry",
		["Rarity"] = 15000
	},
	[31] = {
		["Name"] = "Source",
		["Rarity"] = 77777
	},
	[32] = {
		["Name"] = "Paradise",
		["Rarity"] = 1000000
	},
	[33] = {
		["Name"] = "L I M B O",
		["Rarity"] = 100000000
	},
	[34] = {
		["Name"] = "BigBoi",
		["Rarity"] = 1000000
	},
	[35] = {
		["Name"] = "Moonlike",
		["Rarity"] = 10000
	},
	[36] = {
		["Name"] = "Twilight",
		["Rarity"] = 100000
	},
	[37] = {
		["Name"] = "Consentive",
		["Rarity"] = 1000000000
	},
	[38] = {
		["Name"] = "Soundified",
		["Rarity"] = 100000000
	},
	[39] = {
		["Name"] = "USACUBE",
		["Rarity"] = 500000000
	},
	[40] = {
		["Name"] = "Cybernetic",
		["Rarity"] = 1500000
	},
	[41] = {
		["Name"] = "Peace",
		["Rarity"] = 500000
	},
	[42] = {
		["Name"] = "Isolated",
		["Rarity"] = 75000
	},
}


table.sort(Cubes, function(a, b)
	print(a)
	print(a.Name)
	return a.Rarity > b.Rarity
end)

it wasnt doing this before so like what the heck

the error is

:171: attempt to index nil with 'Name'

You skipped the index 11, so it errors and stops the script there.