I'm not sure how to sort them, but if your goal is to keep your desktop organized, you might want to check out a free program called Fences by Stardock. I also have a large amount of icons, and I find the program really helpful.
You can check it out
here.