fix a bug of creating 'ORDER BY' clause.
added return-code to the end of a created file.