Here is a goal: What should you do to avoid bringing in bedbugs with your shoes?

Which way makes more sense to accomplish this goal?
Wash them with detergent and hot water. Leave them outside in the sunlight for a couple of hours.