I don't think your plan is wise. Choose either Sardinia, or the Amalfi/Sorento/Positano area. Not both.
I see no point in going to Sardinia and spending just one or two days there (the day you arrive, as well as the day you leave, will be consumed by travel, so don't count those). The same is true for the Amafli coast.
I spent almost 3 weeks in Sardinia in September 2017, and loved it, and I felt like I was not spending enough time there. 3 nights? That would be a tragedy. You need a lot more time being somewhere and less time shuttling between places -- especially these places.
Respectfully, I suggest you reconsider your plans. I would give Sardinia at last a week, at the absolute minimum - and even then, you would need to restrict yourself to just one corner of the island (and all of it is worth seeing). It's a big place! (second largest island in the Mediterranean, just behind Sicily....would you go to Sicily for just 3 nights?).
The same is true for Amalfi/Sorrento/Positano - there's plenty to see and do there, just a couple days is not appropriate, it deserves more time.
How many days/nights do you really have? It doesn't sound like enough to do both places to me...