You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: huffman.go
    path of file: ./repos/Algorithms/Greedy Algorithms/Huffman/go
    
    the code of the file until where you have to start completion: package main

import (
	"sort"
)

// HuffmanTree is a codification of a Huffman tree. We arbitrary decide that we interpret the left tree 
    
func SortFrequencyList(m map[byte]float32) []byte {
	// Convert to array of struct values.
	type kv struct {
		Key   byte
		Value float32
	}
	var kvs []kv
	for k, v := range m {
		kvs = append(kvs, kv{k, v})
	}

	// Sort array.
	sort.Slice(kvs, func(i, j int) bool {
		return kvs[i].Value < kvs[j].Value
	})

	// Convert to byte array.
	var result []byte
	for _, v := range kvs {
		result = append(result, v.Key)
	}
	return result
}