from collections import OrderedDict


def order_by_keys(dict):
    """
    Sort a dictionary by keys, case insensitive ie [ Ada, eC, Fortran ]
    Default ordering, or using json.dump with sort_keys=True, produces
    [ Ada, Fortran, eC ]
    """
    return OrderedDict(sorted(dict.items(), key=lambda s: s[0].lower()))