bug fix for GPTimer and sort method for GPArray