How to do ignore case on a strings

I'm trying to sort string array in ascending order but I'm having trouble getting to work right, because it puts the uppercase names on the top and lowercase names at the end even if the names are same. And i'm not allowed to use any special library function so I was wondering if there's another way to fix this problem?
Topic archived. No new replies allowed.