Fixed issue with calling the sort function