The Philadelphia 76ers equaled the record for the worst losing streak in NBA history Wednesday, suffering a last-gasp defeat against Boston to chalk up their 26th consecutive loss. The 76ers led heading into the final minutes, but were overhauled by a late rally from the Celtics, who scraped home 84-80 as Philadelphia's miserable campaign continued. Jae Crowder sank a three-pointer with 38.5 seconds left on the clock as Boston produced an 18-3 points rally to win having trailed by 11 points midway through the third quarter. Philadelphia had led 80-75 with 2:51 left in the game, only to watch as Boston reeled off the final nine points of the match to snatch victory. The 76ers were left ruing an inability to preserve possession when it counted, finishing with 19 turnovers. The 76ers are now 0-16 for the season, and combined with 10 straight losses last year now have a share of the record for the worst string of defeats in history. The 2013-14 76ers were the last side to lose 26 straight, a feat emulated by the Cleveland Cavaliers in 2010-11. Two more defeats in their next games against Houston on Friday and Memphis on Sunday will take them to 0-18, equalling the worst ever start to an NBA season, set by the New Jersey Nets in 2009-10. Spurs 88, Mavericks 83 Kawhi Leonard poured in 26 points, including the clinching three-pointer with 15 seconds remaining, as the San Antonio Spurs beat the Dallas Mavericks 88-83. Mavericks forward Dirk Nowitzki hit a jumper with 2:15 to play, cutting San Antonio's lead to 82-80, and Dallas had a chance to tie the game on its next possession. Guard Deron Williams badly missed a jumper. Magic 100, Knicks 91 Victor Oladipo lost his starting job but still scored a season-high 24 points to lead the Orlando Magic to a 100-91 victory over the New York Knicks. Oladipo, who started 83 of his previous 84 games with the Magic, was benched in favor of Channing Frye. Hornets 101, Wizards 87 Nicholas Batum scored 16 points and had 11 assists, and the Charlotte Hornets used a big fourth-quarter run to beat the Washington Wizards 101-87. Pistons 104, Heat 81 Andre Drummond racked up 18 points, 20 rebounds and five blocks and the Detroit Pistons made a season-high 16 three-pointers in a 104-81 romp over the Miami Heat at The Palace. Raptors 103, Cavaliers 99 Kyle Lowry scored 27 points as the Toronto Raptors defeated the Cleveland Cavaliers 103-99 with a strong fourth quarter. Timberwolves 99, Hawks 85 Zach LaVine scored 18 points and Minnesota's reserves provided a spark in the Timberwolves' 99-95 victory over the Atlanta Hawks. Kings 129, Bucks 118 Rudi Gay scored 36 points as the Sacramento Kings held off the Milwaukee Bucks 129-118 at the Bradley Center. Elsewhere it was: Grizzlies 102, Rockets 93; Thunder 110, Nets 99; Jazz 102, Clippers 91.