cocked hat
knock something into a cocked hat
1 put a definitive end to something.
2 be very much better than someone or something.
☞ A cocked hat is a hat with the brim permanently turned up, especially a style of three-cornered hat worn from the late 18th century to the early 19th century.