fix #247
Merge pull request #277 from mapbox/fix-attachment-order-breakage

fix #247