At first it was described as follows
<LinearLayout> <TextView/> <Button/> </LinearLayout>
After applying automatic code formatting, the order was changed as follows
<LinearLayout> <Button/> <TextView/> </LinearLayout>
To prevent this, I did the following: Preference → Code Style → XML → Set form → Android → Apply
Now you can't sort them by yourself.