made sort and get php generic

sort php and get php now work for batsmen, bowler and fielder