code: func (lls *leastLoadedScheduler) sortedAgents(clust *clusterState) []*agent.AgentState {
  	agents := clust.agents()
  
  	sas := make(sortableAgentStates, 0)
  	for _, as := range agents {
  		sas = append(sas, as)
  	}
  	sort.Sort(sas)
  
  	return []*agent.AgentState(sas)
  }
docs: // sortedAgents returns a list of AgentState objects sorted ascending
  // by the number of scheduled units