Sorting Dictionaries by value

I had to so some dictionary work today whilst in the coal-mine.... All was going well until I tried to sort by Value.

from collections import OrderedDict
from collections import Counter
line="this is a line and a very fine line it is line up over there"
for w in line.split(' '):
  if w in words:
    words[w] += 1
    words[w] = 1
#print words
#Now Sort this
d_sorted_by_value = OrderedDict(sorted(words.items(), key=lambda x: x[1]))
#print d_sorted_by_value
print mc