Is it possible to rearrange the inline buttons in detail view ?
In the Actions panel, hovering over the actions will show an icon (half circle arrow with 3 lines).
Click on it and a panel will popup where you can drag the actions to change the order.