frappe.utils.sort and print.py precaution

ok - i thought this was related to using print.py for portal!