def METHOD_NAME(self):
    """Saves yaml
    Raises:
        PluginError: Error
    """
    top_fields = ['title', 'url']
    def sort_key(item: typing.Tuple[str, typing.Any]) -> typing.Tuple[int, str]:
        # Sort important fields first, then the rest of the fields alphabetically
        try:
            return top_fields.index(item[0]), ''
        except ValueError:
            return len(top_fields), item[0]
    out = []
    for entry in self.entries:
        filtered_entry = json.coerce(self.filter_keys(entry))
        out.append(OrderedDict(sorted(filtered_entry.items(), key=sort_key)))
    try:
        # By default we try to write strings natively to the file, for nicer manual reading/writing
        out_bytes = dump_yaml(
            out, default_flow_style=False, encoding=self.encoding, allow_unicode=True
        )
    except UnicodeEncodeError:
        # If strings are not representable in the specified file encoding, let yaml use backslash escapes
        out_bytes = dump_yaml(out, default_flow_style=False, encoding=self.encoding)
    try:
        with open(self.filename, 'wb') as outfile:
            outfile.write(out_bytes)
    except Exception as e:
        raise PluginError(f'Error writhing data to `{self.filename}`: {e}')