Manual Sprite Animation Breaks After Building

Hi all. I am manually loading a sprite in a script and then flipping through each slice of the sprite in the Update function. This works fine in the editor however when I build the project the animation breaks. Any ideas why this might be happening?

BROKEN AFTER BUILDING
8463551--1123961--broken.gif

WORKING IN EDITOR
8463551--1123964--working.gif

Ok turns out the sprites are loaded in order when in the editor, but are loaded out of order during build. Instead of just saving the array I am parsing the keys to get the proper index.