Here’s the correct chronological order of the events you provided:
- The British government takes control of the East India Company's territories (1858)
- India's textile industry collapses (late 19th century, largely due to British policies and industrial competition)
- Mohandas Gandhi organizes boycotts of British goods (first notable boycott, the Swadeshi Movement, began in 1905, intensified in the 1920s)
- Britain withdraws from South Asia (1947, with the independence of India and Pakistan)
So the order is:
- The British government takes control of the East India Company's territories
- India's textile industry collapses
- Mohandas Gandhi organizes boycotts of British goods
- Britain withdraws from South Asia