The swimming world championships ended with a bang Sunday when emerging Chinese standout Sun Yang broke the oldest world record in the sport -- Australian great Grant Hackett's 10-year-old mark in the 1,500 meters Sun was just over two seconds off Hackett's 2001 pace with four laps to go, but accelerated on the final two laps to finish in 14 minutes, 34.14 seconds, improving on Hackett's mark of 14:34.56 set at Fukuoka, Japan. The crowd at the Oriental Sports Center provided loud support over the final laps, erupting into more joy when the clock stopped four-tenths of a second inside Hackett's mark. It was only the second world record to fall in swimming since high-tech bodysuits were banned 19 months ago -- and Hackett's record had been the only mark to withstand the record deluge during the polyurethane era of 2008 and 2009. American all-arounder Ryan Lochte set the first world record since the return to textile suits at this meet Tuesday in the 200 individual medley. Lochte, the overall standout of the meet, also won the 400 IM Sunday for his fifth gold, edging silver medalist and teammate Tyler Clary by a massive four seconds. In other events, 33-year-old Therese Alshammar of Sweden won the women's 50 free, American Jessica Hardy reclaimed the 50 breaststroke title she lost two years ago during a doping ban and Liam Tancock gave Britain its second gold in as many nights in the 50 back. The 19-year-old Sun also won the 800 free earlier in the meet, plus a silver in the 400 and a bronze with China's 4x200 relay squad. He is coached by Hackett's former mentor Dennis Cotterell. Sun had already come close to Hackett's mark when he won at the Asian Games last November in Guangzhou, China in 14:35.43. Upon breaking Hackett's mark, an exhausted Sun celebrated mildly, then bowed to the crowd. During the 400 IM, Lochte was already in the lead by the time he surfaced following his initial dive off the starting block. He had a one-second lead after the opening butterfly leg and expanded that to two seconds over the backstroke and breaststroke legs before powering home in the freestyle to win by about two bodylengths. As he exited the pool deck, Lochte tossed his two swim caps into an appreciative crowd. Clary clocked 4:11.17 and Yuya Horihata of Japan got bronze in 4:11.98. Lochte leaves Shanghai having won all four of his individual events -- beating Phelps in two of them. He took another gold, plus a bronze, with the U.S. relay teams. However, Lochte wasn't included on the U.S. squad for the final relay of the meet, the 4x100 medley later. Phelps was swimming the relay, attempting to add to his haul of three golds, two silvers and a bronze thus far. Lochte also beat Phelps in two events at last year's U.S. championships, then won six golds to Phelps' five at the Pan Pacific Championships in 2010 -- prompting Phelps' coach Bob Bowman to acknowledge that Lochte was the best swimmer last year. Now it's fair to say Lochte has had the edge over Phelps this year, too, setting up an enticing duel at next year's London Olympics. Alshammar, a four-time Olympian, won the 50 free in 24.14 ahead of two Dutch swimmers -- Ranomi Kromowidjojo clocked 24.27 to take silver and Marleen Veldhuis earned the bronze in 24.49. Defending champion and world record holder Britta Steffen of Germany withdrew earlier in the meet. Hardy missed the 2009 worlds while serving a one-year doping ban, even though the Court of Arbitration for Sport accepted that she was not at fault for consuming a contaminated dietary supplement. She won in 30.19, 2009 winner Yuliya Efimova of Russia took the silver and another American, Rebecca Soni, got bronze. Tancock's victory followed British teammate Rebecca Adlington's 800 free victory a day earlier, however his win won't create as much clamor going into next year's London Games because the 50 back is not an Olympic event.