Hello, i have a problem with writing to char** array from file.
I couldn't explain why, first n-1 lines is copied with no problem, but in last n line it outputs only last, and previous.

http://pastebin.com/m4a12d893


Example file :
1223 John
343 Dude
233 Zordo

I'm doing it becouse I want sort file by numbers in line beggining.
Maybe someone could give me some other way to do it in simply way?