def sort_ci(items):

    def sort_tuple(tuple):
        return ([lower(x) for x in tuple],) + tuple
temp = [sort_tuple(tuple) for tuple in items]
temp.sort()
return [tuple[1:] for tuple in temp]
Sort a list of tuples without case sensitivity