Fixed file content sorting issue