Make player sort function work more better.