IMPORTANT fix typo invalid for loop end

without this patch minetest will never come up as mod name sorting never terminates (without crash)