From an interview with Faith Korpi:
I arrange all the app icons in my dock by color because that’s the only way I’ll remember where everything is. I’ve tried sorting them by type and how often I use them, but by color is the only method that doesn’t leave me scanning the whole bar for the icon I’m looking for.