In cricket, the batting order is the sequence in which batsmen play through their team's innings, there always being two batsmen taking part at any one time. All eleven players in a team are required to bat if the innings is completed (i.e., if the innings does not close early due to a declaration or other factor).
The batting order is colloquially subdivided into:
The order in which the eleven players will bat is usually established before the start of a cricket match, but may be altered during play. The decision is based on factors such as each player's specialities; the position each batsman is most comfortable with; each player's skills and attributes as a batsman; possible combinations with other batsmen; and the match situation whereby, for example, the team may require a more defensive or attacking player at that point in the innings. Also, a middle order batsman in Tests may open for ODI's and Twenty20 due to their aggressive approach to the game.
The captain of the team can change the batting order during the game at his or her discretion. They can even change the batting line-up from one game to another in a tournament or series. There are no rules about the nature or number of changes made and, if more than one innings is played, the order used in each need not be the same. It has even been known for a captain to completely reverse his batting order for the second innings after following on. This has made it possible for a bowler to take a hat-trick across three consecutive overs of a match, including the same batsman twice.
There are various reasons why the captain might make a change from the established order. Usually, however, captains and coaches prefer not to adjust the batting order unless necessary, as for example when South Africa had to move Imran Tahir up the order against India because South African top 7 batsmen are poor against spin bowlers, a plan which backfired spectacularly.
If the state of the game requires runs to be scored quickly, a captain will often promote a batsman who is known to score quickly up the order. This is usually a lower-order batsman, as their wicket is not regarded as being so valuable. A batsman who is promoted up the order with the intention of scoring quick runs is called a pinch hitter.