Resort Firewall Networks Order

I have quite a few firewall network entries (Local, Other, Trusted).

I was wondering if there is a way to resort the entries? Right now they are listed in the sequence of data entry, I would like to resort them to keep similar entries together.

Is there a way to do this? Perhaps via SSH or local terminal?