adds command ordering within sections