sort, iteration version

now case insensitive (dictionary version)