<Table> <Tr> <Td> "Heartbeat" (1958) </Td> <Td> "It Doesn't Matter Anymore" (1959) </Td> <Td> "Peggy Sue Got Married" (1959) </Td> </Tr> </Table> <Tr> <Td> "Heartbeat" (1958) </Td> <Td> "It Doesn't Matter Anymore" (1959) </Td> <Td> "Peggy Sue Got Married" (1959) </Td> </Tr> <P> "It Doesn't Matter Anymore" is a pop ballad written by Paul Anka and recorded by Buddy Holly in 1958 . The song reached number 13 as a posthumous hit on the Billboard Hot 100 chart in early 1959, shortly after Holly was killed in a plane crash on February 3, 1959 . The single was a two - sided hit, backed with "Raining in My Heart". "It Doesn't Matter Anymore" was Holly's last US Top 20 hit and featured the orchestral backing of Dick Jacobs . It was also successful in the United Kingdom, where it became the country's first posthumous number 1 hit . The song was recorded in mid-October 1958 in New York City . Paul Anka wrote it specifically for Holly . He donated his royalties from the song to Holly's wife . He said: "' It Doesn't Matter Anymore' has a tragic irony about it now, but at least it will help look after Buddy Holly's family . I'm giving my composer's royalty to his widow - it's the least I can do ." </P> <P> The song has been covered many times, most commercially successful by New Zealand - born singer songwriter, Mark Williams, who had a number - one hit with it in 1977 . </P>

What song did paul anka write for buddy holly