Try a file like this in the /etc/modprobe.d/ directory named say joysticks.
Code:
## Added by me for proper detection of joysticks
alias js0 sidewinder
alias js1 analog
Hopefully this will make the first joystick be associated with the sidewinder module with it being loaded before the analog gets a chance to load. One other thing to try would be putting both the analog and sidewinder modules on a line by themselves in the file /etc/modules making the sidewinder the first entry in the file.