import collections


def create_word_dict(filename):
    """Returns a word/count dict for the given file."""
    frequency = {}
    with open(filename) as text:
        for word in text.read().split():
            if word.lower() in frequency:
                frequency[word.lower()] += 1
            else:
                frequency[word.lower()] = 1

        new_dict = collections.OrderedDict(sorted(frequency.items()))
        return (dict(new_dict))