For the Sixers, the best laid lottery dreams oft go astray.
On Sunday in the Towns/Okafor Bowl, the Sixers had a chance to end their preseason goal of finishing with the league’s worst record and winning the No. 1 lottery seed by posting a victory over the Knicks.

However, the Sixers are still alive as the Knicks posted a 101-91 win during a Garden block party to end a nine-game losing streak.

The Knicks, who registered 14 blocks, one off the franchise record, are still in good shape to win the top lotto seed over Philly. Ironically, just six months ago, Knicks brass voted for lottery reform that would have penalized the team with the worst record.

The Sixers are ahead of the Knicks (15-62) by 2 ½ games in the standings. The bigger threat to the Knicks is the second-worst Wolves, who are just 1 ¹/₂ games better with five games to play.

On Oct. 22 at the Board of Governor’s meetings in Manhattan, lottery reform was proposed with a plan to give the top-five worst teams equal odds in the lottery — each getting 12 percent. The Knicks were one of 17 teams to vote for the change, according to an industry source. But it didn’t pass because 23 “yes’’ votes were needed.

In hindsight, Knicks brass is glad it didn’t go through. The old system stayed in place and the Knicks, if they maintain the worst record, will have a 25 percent chance at winning the lottery as opposed to 12 percent.