Fixed bug on return message for sort