Is this a screw in Edison base lamp socket ? Functionally , it will make no difference . But you are correct , the neutral is suppose to go to the screw shell .
If you have an earth ground , check from it to the other 2 wires to find the hot . If not , some neon testers will register a hot if you hold the other test lead . Be careful !
God bless
Wyr