The numbers of fields are in a sequence with multiples of 10. The reason for this is to allow the users to add custom fields in between if needed with numbers non multiple of 10.
The tab editor destroy that because it renumbers the whole window to multiples of 10. That can be considered a bug. It can be changed to not destroy sequences dependent of the entity type.