The alphabetized kata
---------------------

Re-order the characters of a string, so that they are concatenated into a new string in "case-insensitively-alphabetical-order-of-appearance" order. Whitespace and punctuation shall simply be removed!

The input is restricted to contain no numerals and only words containing the english alphabet letters.

Example: 

```python
alphabetized("The Holy Bible") # "BbeehHilloTy"
```

_Inspired by [Tauba Auerbach](http://www.taubaauerbach.com/view.php?id=73)_

Source: codewars | Difficulty: EASY
Tags: String algorithms

Sorting

Starter code: def alphabetized(s):
	

Solutions:
def alphabetized(s):
	return ''.join(sorted(filter(str.isalpha, s), key=str.lower))


import re

def alphabetized(s):
	return ''.join(sorted(re.sub('[^A-Za-z]', '', s), key=str.lower))


alphabetized = lambda s: ''.join(sorted(filter(str.isalpha, s), key=str.lower))


def xx_key(a):
	if a.islower():
		return ord(a)
	else:
		return ord(a) + 32

def alphabetized(s):
	s = ''.join(s.split())
	m = sorted(s, key=xx_key)
	return ''.join([i for i in m if i.isalpha()])


def alphabetized(stg):
	return ''.join(sorted((c for c in stg if c.isalpha()), key=str.lower))


def alphabetized(s):
	return ''.join(sorted(''.join([x for x in s if x.isalpha()]), key=lambda x: x.lower()))


def alphabetized(s):
	return ''.join(sorted([c for c in s if c.isalnum()], key=str.lower))


def alphabetized(s):
	cs = [(c, i) for (i, c) in enumerate(s) if c.isalpha()]
	cs = sorted(cs, key=lambda c: (c[0].lower(), c[1]))
	return ''.join((c for (c, _) in cs))


def alphabetized(s):
	return ''.join(sorted([i for i in s if i.isalpha()], key=lambda s: s.upper()))