Can you provide more details about what happened? Were the roles in the correct sequence, and then they got rearranged? Did you add or delete any roles, or change the sort order, before you noticed they were wrong?
I've used 'Custom Sort Roles' for classifying the characters between the series. That's automatically messed without reasons, it's happened again for some days after I repaired. I have no any operations after the modifies.