it will not work is they are swaped around so just plug it in. if it doesn't light up switch them around. it wont hurt if they get hooked up backwards the first time.
all a LED is, is a device that lets electricity flow one direction but not the other and it admits light when power is flowing though it in the one direction that it can flow though it.