df = pd.DataFrame({'id': [2967, 5335, 13950, 6141, 6169], 'Player': [
    'Cedric Hunter', 'Maurice Baker', 'Ratko Varda', 'Ryan Bowen',
    'Adrian Caldwell'], 'Year': [1991, 2004, 2001, 2009, 1997], 'Age': [27,
    25, 22, 34, 31], 'Tm': ['CHH', 'VAN', 'TOT', 'OKC', 'DAL'], 'G': [6, 7,
    60, 52, 81]})
sorter = ['TOT', 'ATL', 'BOS', 'BRK', 'CHA', 'CHH', 'CHI', 'CLE', 'DAL',
    'DEN', 'DET', 'GSW', 'HOU', 'IND', 'LAC', 'LAL', 'MEM', 'MIA', 'MIL',
    'MIN', 'NJN', 'NOH', 'NOK', 'NOP', 'NYK', 'OKC', 'ORL', 'PHI', 'PHO',
    'POR', 'SAC', 'SAS', 'SEA', 'TOR', 'UTA', 'VAN', 'WAS', 'WSB']
sorting by a custom list in pandas