No need for sort
Here come the MACROS!

Removed the response building duplication with macros.
Moar macros

Also nicely sorted my index pages.