ghost: Sort media codecs