If it’s in the same widget then on the UI designer you just simply have to reorder the padlock or the line on “Hierarchy” Section.
Before:
After: