### Happy Holidays fellow Code Warriors!

Now, Dasher! Now, Dancer! Now, Prancer, and Vixen! On, Comet! On, Cupid! On, Donder and Blitzen! That's the order Santa wanted his reindeer...right? What do you mean he wants them in order by their last names!? Looks like we need your help Code Warrior!

### Sort Santa's Reindeer

Write a function that accepts a sequence of Reindeer names, and returns a sequence with the Reindeer names sorted by their last names.

### Notes:

* It's guaranteed that each string is composed of two words
* In case of two identical last names, keep the original order

### Examples

For this input:

```
[
  "Dasher Tonoyan", 
  "Dancer Moore", 
  "Prancer Chua", 
  "Vixen Hall", 
  "Comet Karavani",        
  "Cupid Foroutan", 
  "Donder Jonker", 
  "Blitzen Claus"
]
```

You should return this output:

```
[
  "Prancer Chua",
  "Blitzen Claus",
  "Cupid Foroutan", 
  "Vixen Hall", 
  "Donder Jonker", 
  "Comet Karavani",
  "Dancer Moore", 
  "Dasher Tonoyan",
]
```

Difficulty: introductory

Starter code:

def sort_reindeer(reindeer_names):
	

Solutions:
def sort_reindeer(reindeer_names):
    return sorted(reindeer_names, key=lambda s:s.split()[1])

def sort_reindeer(names):
    return sorted(names, key=lambda x: x.split()[1])

def lastname(name):
    name = name.split()
    return name[1]
    
def sort_reindeer(reindeer_names):
    reindeer_names.sort(key=lastname)
    return reindeer_names


def sort_reindeer(reindeer_names):
    return sorted(reindeer_names, key=lambda el: el.split(' ')[-1])

sort_reindeer=lambda rn: sorted(rn, key=lambda x: x.split()[1])

def sort_reindeer(reindeer_names):
    reindeer_names.sort(key = lambda x: x.split()[-1])
    return reindeer_names

def sort_reindeer(reindeer_names):
    with_last_names = []
    for i in reindeer_names:
        with_last_names.append((i, i.split(' ')[1]))
    return [i[0] for i in sorted(with_last_names, key = lambda x: x[1])]

def sort_reindeer(reindeer_names):
    return sorted(reindeer_names, key=lambda n: n.split()[-1])

def sort_reindeer(reindeer_names):
    return sorted(reindeer_names, key = lambda x: x.split(' ')[1])

def sort_reindeer(reindeer_names):
    sorted_list = []
    for name in reindeer_names:
        sorted_list.append(name.split())
    sorted_list = sorted(sorted_list, key=lambda names: names[1])

    result = []

    for item in sorted_list:
        name = item[0] + ' ' + item[1]
        result.append(name)
    
    return result