I use this order, might not make a difference but I like structure (old mainframe programer):

Configs
DEFINES
Special registers
TRIS
Ports
Variables

Robert