def get_sorted_paths(paths, highest_first=True):
	"""Return a generator that will yield the items of 'paths' sorted highest first if `highest_first` is True. This will work for numbers as well as strings."""
	return sorted(paths, key=lambda x: x[0], reverse=highest_first)