Yifeng - Added sorting for the frames, so that new sprites sheets won’t be messed up