The end of baseball's regular season brings with it the order of the 2016 MLB Draft, with teams in each round selecting in inverse order of their 2015 record, starting with the 99-loss Phillies and ending with the 100-win Cardinals. At the beginning of the offseason, the Dodgers held the 25th pick in next June's amateur draft.

This position changed throughout the offseason, with various qualifying offers and free agent signings. For instance, last year at the start of free agency, the Dodgers had the 29th pick, but after various signings of qualified free agents and the subsequent forfeiture of picks above them, LA's first selection ended up at No. 24, where they drafted pitcher Walker Buehler out of Vanderbilt.

While the 2016 draft order is determined by the inverse of 2015 record, ties are broken by the worse 2014 record. The Dodgers started the offseason with the 25th pick. After all the qualifying offer free agents had signed, the Dodgers' first-round pick is 20th.

Here is the 2016 draft order, through the first two rounds, compensatory picks, plus the competitive balance rounds A and B.

Protected picks

1 - Phillies (63-99)

2 - Reds (64-98)

3 - Braves (67-95)

4 - Rockies (68-94; 66-96 in 2014)

5 - Brewers (68-94; 82-80 in 2014)

6 - Athletics (68-94; 88-74 in 2014)

7 - Marlins (71-91)

8 - Padres (74-88)

9 - Tigers (74-87)

10 - White Sox (76-86; 73-89 in 2014)

The signing of a free agent who declined a qualifying offer carries with it a cost of a first-round pick, unless that pick is in the top 10. These are protected picks; Detroit signed Jordan Zimmerman and instead forfeited its next pick, which for most teams is in the second round, though may be sooner. The Cubs will forfeit their top two picks for signing John Lackey and Jason Heyward.

Remainder of first round

11 - Mariners (76-86; 87-75 in 2014)

12 - Red Sox (78-84)

Diamondbacks (79-83) forfeited for signing Zack Greinke

13 - Rays (80-82)

Orioles (81-81) forfeited for signing Yovani Gallardo

14 - Indians (81-80)

15 - Twins (83-79; 70-92 in 2014)

Nationals (83-79; 96-66 in 2014) forfeited for signing Daniel Murphy

Giants (84-78) forfeited for signing Jeff Samardzija

16 - Angels (85-77)

17 - Astros (86-76)

18 - Yankees (87-75)

Rangers (88-74) forfeited for signing Ian Desmond

19 - Mets (90-72)

20 - Dodgers (92-70)

21 - Blue Jays (93-69)

Royals (95-67) forfeited for signing Ian Kennedy

Cubs (97-65) forfeited for signing John Lackey

22 - Pirates (98-64)

23 - Cardinals (100-62)

Compensatory picks

24 - Padres (for loss of Ian Kennedy)

25 - Padres (for loss of Justin Upton)

26 - White Sox (for loss of Jeff Samardzija)

27 - Orioles (for loss of Wei-Yin Chen)

28 - Nationals (for loss of Jordan Zimmermann)

29 - Nationals (for loss of Ian Desmond)

30 - Rangers (for loss of Yovani Gallardo)

31 - Mets (for loss of Daniel Murphy)

32 - Dodgers (for loss of Zack Greinke)

33 - Cardinals (for loss of John Lackey)

34 - Cardinals (for loss of Jason Heyward)

There were 16 free agents to receive and decline a qualifying offer. Teams that make a qualifying offer to free agents who decline and sign elsewhere, they get a pick in between the first and second round. These picks are also ordered by inverse order of 2015 record. Should a team lose multiple qualified-offer free agents, each subsequent pick would come in succession.

Competitive Balance Round A

35 - Reds

36 - Dodgers (for failure to sign 2015 No. 35 overall pick Kyle Funkhouser)

37 - Athletics

38 - Rockies

39 - Diamondbacks

40 - Braves (via trade with Marlins)

41 - Pirates

Six of these picks are half of MLB's competitive balance lottery system, with the 10 smallest markets and teams with the 10 smallest revenues the ones eligible for these picks. The competitive balance picks (Round B is six picks in between the second and third rounds) can be traded, but only once. The Braves got the pick from the Marlins as part of the Dodgers' machinations with both teams to get Alex Wood, Mat Latos, et al on July 30.

The wrinkle here is that No. 36 pick. That is the Dodgers' compensation for failing to sign Kyle Funkhouser, their No. 35 overall pick in the 2015 draft. No matter how many qualifying-offer free agents affect the draft order, the Dodgers' compensatory pick is locked in at No. 36, one pick after the one they used on Funkhouser.

Second round

42 - Phillies

43 - Reds

44 - Braves

45 - Rockies

46 - Brewers

47 - Athletics

Marlins (forfeited for signing Wei-Yin Chen)

48 - Padres

Tigers (forfeited for signing Jordan Zimmermann)

49 - White Sox

50 - Mariners

51 - Red Sox

52 - Diamondbacks

53 - Rays

54 - Orioles

55 - Indians

56 - Twins

57 - Blue Jays (compensation for failure to sign 2015 No. 56 pick Brady Singer)

58 - Nationals

59 - Giants

60 - Angels

61 - Astros

62 - Yankees

63 - Rangers

64 - Mets

65 - Dodgers

66 - Blue Jays

67 - Royals

Cubs (forfeited for signing Jason Heyward)

68 - Pirates

69 - Orioles (for failure to sign 2015 No. 68 pick Jonathan Hughes)

70 - Cardinals

There are three compensation picks in the second round for failure to sign 2015 draft picks, by the Blue Jays, Orioles and Twins, per Baseball America. One bleeds over into Competitive Balance Round B.

Competitive Balance Round B

71 - Padres

72 - Indians

73 - Twins (for failure to sign 2015 No. 73 pick Kyle Cody)

74 - Twins

75 - Brewers

76 - Orioles

77 - Rays

Third round and beyond

The Tigers forfeit their third-round pick (No. 86) for signing Justin Upton.

The Dodgers pick 24th in the third round (101 overall), and 25th in each round after the third.