func (b ByWeight) Swap(i, j int) {
	b[i], b[j] = b[j], b[i]
}
Swap exchanges values at indices
package sorts
import (
	"github.com/DataDrake/proc-maps/data"
)
type ByWeight []*data.FileEntry
func (b ByWeight) Len() int {
	return len(b)
}