def sortedSeasons(m):
 seasons = m.get('episodes', {}).keys()
 seasons.sort()
 return seasons

def sortedSeasons ( m ) : seasons = m . get ( 'episodes' , { } ) . keys ( ) seasons . sort ( ) return seasons
return a sorted list of seasons of the given series .