def sort_top_editors_per_country(editors, editcount_index, top_n):
	"""
	Takes a list of lists of editors with editcounts
	and a top editor cutoff int, returns a sorted top list.
	"""
	editors.sort(key=lambda x: int(x[2]), reverse=True)
	if len(editors) > top_n:
		editors = editors[:top_n]
	return editors