Clean up ugly group by in sprite render system.