adding case-insensitive sort function.