Character input upgraded; data sorting