Sort fail petterns in report script