we took shuttle train to Termini and the Eurostar to Naples -- you
can buy the Eurostar ticket at the ticket booth at Da Vinci-- the local
train that goes to Sorrento is accessed from the Naples train station
You can reserve and buy it at home too, at
www.trenitalia.com and print out
the receipt for what they call this "ticketless" travel option.