By popular request on SQL Developer forum the package content now can be sorted by various criteria. (Unfortunately it missed 1.5 production release).
The default ordering is by location in the source:

To change the sorting invoke Package / Package Body context menu:

