how to Order layers by name in after effects
To sort layers by name, you either have to name them using a numerical prefix of some sort or use a script to do it.
Ordering by name using numbers: https://graphicdesign.stackexchange.com/questions/131728/in-after-effects-sort-project-layers-by-name-numerical-order
Here is a script: https://github.com/ff6347/after-effects-script-snippets/blob/master/automagically-sort-layers-by-name.jsx