Use pop over shift to avoid reverse
Merge pull request #459 from Shopify/pop_vs_shift

Use pop over shift to avoid reverse