Added logic to sort visitActions and overAllActions to maintain the order on the patientdashboard - CARD-536