sort -i actually means "ignore nonprinting", not "ignore case". Also, we need to set LC_ALL to get proper sorting for "-".