Assorting socks according to the colour and stains can help you clean them efficiently and reduces the chances of errors.
Sort them out. Divide them into 2 lots - whites and non-whites. Wash them in clean water.
Use cleaning detergent. Pour 2 cups of Surf Excel into a bucket filled with water, stir and put the socks in it. Wash them with your hands.
Fill the sink with cold, soapy water. Plug the drain and start filling it with cold water. Pour 2-3 drops of Vim dishwash gel, stir it till you see a foam build-up. Turn the socks inside out and soak them in the solution to loosen the dirt. Scrub them gently to remove the stains. Soak for 5 more minutes.
Rinse them out. Pull out the drain and turn the faucet back on. Scrub the socks gently and rinse out all the soap. Wring them gently and let them dry.