The system allows for the assignment of a "sort order" for each payroll instruction. Earnings, Benefits, and Deductions will always stay within their respective categories, but within each category, the sorting will be based on the number assigned (from left to right) and if more than one for a sort order exists, then alphabetically.
As a default, all payroll instructions are sorted at 0, so they sort alphabetically. This tutorial will outline how to assign sort order numbers to a payroll instruction. You may want to map out how you would like it to look in advance, and you may want to create a buffer by increasing by 2 (which allows you to add a new instruction at a later date if required).