added index to sorted downcase