If you were in a battle, and your opponent's Pokemon ( say a starly) used quick attack, and you used quick attack too. What would happen?
The one with the higher speed goes first.
The Pokemon with the highest Speed stat will go first.
Source: Experience