title: python: combine sort-key-functions itemgetter and str.lower
body: <p>I want to sort a list of dictionaries by dictionary key, where I don't want to distinguish between upper and lower case characters.</p>
  
  <pre><code>dict1 = {'name':'peter','phone':'12355'}
  dict2 = {'name':'Paul','phone':'545435'}
  dict3 = {'name':'klaus','phone':'55345'}
  dict4 = {'name':'Krishna','phone':'12345'}
  dict5 = {'name':'Ali','phone':'53453'}
  dict6 = {'name':'Hans','phone':'765756'}
  list_of_dicts = [dict1,dict2,dict3,dict4,dict5,dict6]
  
  key_field = 'name'
  list_of_dicts.sort(key=itemgetter(key_field))
  # how to combine key=itemgetter(key_field) and key=str.lower? 
  for list_field in list_of_dicts:
      print list_field[key_field]
  </code></pre>
  
  <p>should provide</p>
  
  <pre><code>Ali, Hans, klaus, Krishna, Paul, peter
  </code></pre>
  
  <p>and not</p>
  
  <pre><code>klaus, peter, Ali, Hans, Krishna, Paul
  </code></pre>