fixed sorting and id issue for customer