Complete the solution so that it takes the object (JavaScript/CoffeeScript) or hash (ruby) passed in and generates a human readable string from its key/value pairs. 

The format should be "KEY = VALUE". Each key/value pair should be separated by a comma except for the last pair.

**Example:**
```python
solution({"a": 1, "b": '2'}) # should return "a = 1,b = 2"
```

Source: codewars | Difficulty: EASY
Tags: String algorithms

Fundamentals

Starter code: def solution(pairs):
	

Solutions:
def solution(pairs):
	return ','.join(sorted(('{} = {}'.format(k, pairs[k]) for k in pairs)))


def solution(pairs):
	return ','.join(['{} = {}'.format(*a) for a in sorted(pairs.items())])


solution = lambda d: ','.join(('{} = {}'.format(*p) for p in sorted(d.items())))


def solution(pairs):
	return ','.join((f'{key} = {pairs[key]}' for key in sorted(pairs.keys(), key=str)))


def solution(pairs):
	return ','.join(sorted([f'{k} = {v}' for (k, v) in pairs.items()]))


def solution(pairs):
	answer = [str(i) + ' = ' + str(pairs[i]) for i in pairs]
	answer.sort()
	return ','.join(answer)


def solution(pairs):
	l = []
	for a in pairs:
		l.append(str(a) + ' = ' + str(pairs[a]))
	return ','.join(sorted(l))


def solution(pairs):
	return ','.join(('{} = {}'.format(key, value) for (key, value) in sorted(pairs.items())))


def solution(pairs):
	return ','.join(('{} = {}'.format(k, v) for (k, v) in sorted(pairs.items())))