fixed problem with fgets, having problems with sort command