Finish I/O and error message.
Fix sorting sequence error