BattlerIndex[] the final sequence of commands for this turn
This orders the active Pokemon on the field by speed into an BattlerIndex array and returns that array. It also checks for Trick Room and reverses the array if it is present.
BattlerIndex[] the battle indices of all pokemon on the field ordered by speed
This takes the result of getSpeedOrder and applies priority / bypass speed attributes to it. This also considers the priority levels of various commands and changes the result of getSpeedOrder based on such.