The Edmonton Oilers have gone from worst to first.

Two days after finishing the regular season with the league’s worst record, the Oilers won Tuesday’s annual draft lottery to secure the top pick in the June draft. It marks the fourth time in five years that the league’s worst team has ended up with the top pick.

The Boston Bruins will draft second. Boston secured Toronto’s first-round pick in an off-season trade that sent forward Phil Kessel to the Maple Leafs.

The rest of the draft order also remained the same. The Florida Panthers will select third, followed by the Columbus Blue Jackets and the New York Islanders.

Tampa Bay, Carolina, Atlanta, Minnesota and the New York Rangers round out the top 10, followed by Dallas, Anaheim, Phoenix and St. Louis.

The draft will be held June 25-26 at the Staples Center in Los Angeles.

Barring a trade, the Oilers will become the first Canadian team to select first since 1996, when the Ottawa Senators chose defenceman Chris Phillips. It will also mark the first time Edmonton has had the first overall pick.