I bought these onions not knowing that some of them have started rotten already, but I don't know what to do,I decided to separate the good ones from the rotten ones and they are under the sun at the moment.

I bought these onions not knowing that some of them have started rotten already, but I don't know what to do,I decided to separate the good ones from the rotten ones and they are under the sun at the moment.

I use onions that are starting to go rotten to make onion soup. Rotten onions can also be put around borders to help deter wild animals.
Is really good as you separated them and as you put it und sun if you want use now yo will start form those once that's not goo
I'm already doing the needful by sun-drying them, and after I will use them for what I bought them for.