frappe.utils.sort and print.py precaution

The code is to disable save and insert in print.