Soaking sweat-smelling clothes in white vinegar for a certain number of minutes can help reduce unpleasant odors that linger in the fibers even after washing.
How long to leave sweat-soaked clothes in white vinegar
The University of Kentucky Extension says: “Soak the garment in four parts cold water and one part vinegar for 30 minutes”. After that, it recommends rinsing the clothes and washing them as usual with a laundry detergent.