Repeatable group order issue

First off, Thank you very much for this project. It has been an excellent tool to help me grow as a developer. 

I having an issue with repeating groups. It seems to shuffle the order of the groups when you update the post. When you update, it deletes the previous entry and writes a new one, so the meta_id increments and doesn't always retain the order it was previously. 

Cheers