Changed in Logic: return type of three types of sort is changed to String