The survival ability differs from pathogen to pathogen. One cannot compare the survival rates on fomites. For eg. HBV can survive for a week in blood drops outside the body but lesser on fomites. Enveloped viruses are more stress resistant because of the envelope and therefore can survive longer than the non-enveloped ones in the open air.
As far as bacteria are concerned, the capsulated ones can survive for longer spans as against the non-capsulated bacteria. What is more, some bacteria undergo sporulation in response to unfavourable environmental conditions. The resultant spores have protective layers around the bacterial chromosome that confers them their peculiar characteristics. On return of favourable conditions, they germinate to develop into the vegetative cells.
Thus, spores are more stress resistant on the fomites than are the vegetative cells.

https://www.quora.com/Microbiology-How-long-do-bacteria-and-viruses-survive-on-hands-or-fomites-door-knobs-faucets-clothing-etc/answer/Rituparna-Saha-1

 

Done reading? Let me know how you liked it! :)