Sort debug hook output