func (c *fileConfig) WriteEntries(entries scoring.Entries) error {
	file, err := atom.Open(c.Scores)
	if err != nil {
		return err
	}
	defer file.Close()

	entries.Sort()

	return jsonio.Encode(file, entries)
}
// WriteEntries the input scoring entries to a file.
//
// Sorts the entries before writing them to disk.
WriteEntries the input scoring entries to a file.

Sorts the entries before writing them to disk.
// WriteEntries the input scoring entries to a file . // // Sorts the entries before writing them to disk .
func (c *fileConfig) WriteEntries(entries scoring.Entries) error {
	file, err := atom.Open(c.Scores)
	if err != nil {
		return err
	}
	defer file.Close()
	entries.Sort()
	return jsonio.Encode(file, entries)
}
func ( c * fileConfig ) WriteEntries ( entries scoring . Entries ) error { file , err := atom . Open ( c . Scores ) if err != nil { return err } defer file . Close ( ) entries . Sort ( ) return jsonio . Encode ( file , entries ) }
WriteEntries the input scoring entries to a file.
WriteEntries the input scoring entries to a file .