fixed call of sort function #PH-2
implemented sorting function of the handsArray #PH-2