How to sort Profit and Loss account heads to show direct expenses/direct incomes first?

It shows Indirect Incomes first followed by Direct Income now.

And in Expenses,Indirect Expense is coming on top .

Is there a way to change the sort behaviour in Profit Loss A/c sho that

Income

Direct Income

INdirect Income

Expenses

Direct Expense

Indirect Expense

This order is to be achieved