func (l *LowestIndexPicker) PickNew(
	topic string,
	brokerChoices []int,
	curr []admin.PartitionAssignment,
	partition int,
	index int,
) error {
	return pickNewByPositionFrequency(
		topic,
		brokerChoices,
		curr,
		partition,
		index,
		util.SortedKeys,
	)
}
PickNew updates the replica for the argument partition and index, using the choices in
brokerChoices.
package pickers
import (
	"github.com/segmentio/topicctl/pkg/admin"
	"github.com/segmentio/topicctl/pkg/util"
)
type LowestIndexPicker struct{}
var _ Picker = (*LowestIndexPicker)(nil)
func NewLowestIndexPicker() *LowestIndexPicker {
	return &LowestIndexPicker{}
}