对于给定的一组电影数据，编写一个程序，将其按照年份从小到大排序，并输出前20个代表性的电影。
数据示例(每行代表一部电影，格式为：电影名 年份 评分):
The Shawshank Redemption 1994 9.3
The Godfather 1972 9.2
The Dark Knight 2008 9.0
Pulp Fiction 1994 8.9
The Lord of the Rings: The Return of the King 2003 8.9
Forrest Gump 1994 8.8
Fight Club 1999 8.8
Inception 2010 8.8
The Lord of the Rings: The Fellowship of the Ring 2001 8.8
The Lord of the Rings: The Two Towers 2002 8.7
以下为 Python 代码，可以将数据排序并输出前 20 个代表性的电影：

```python
import heapq

# 电影数据
movies = [
    ("The Shawshank Redemption", 1994, 9.3),
    ("The Godfather", 1972, 9.2),
    ("The Dark Knight", 2008, 9.0),
    ("Pulp Fiction", 1994, 8.9),
    ("The Lord of the Rings: The Return of the King", 2003, 8.9),
    ("Forrest Gump", 1994, 8.8),
    ("Fight Club", 1999, 8.8),
    ("Inception", 2010, 8.8),
    ("The Lord of the Rings: The Fellowship of the Ring", 2001, 8.8),
    ("The Lord of the Rings: The Two Towers", 2002, 8.7)
]

# 按照年份从小到大排序
movies_sorted = sorted(movies, key=lambda x: x[1])

# 输出前 20 个代表性的电影
top_movies = heapq.nlargest(20, movies_sorted, key=lambda x: x[2])
for movie in top_movies:
    print(movie[0], movie[1], movie[2])
```

输出结果为：

```
The Shawshank Redemption 1994 9.3
The Godfather 1972 9.2
The Dark Knight 2008 9.0
Pulp Fiction 1994 8.9
The Lord of the Rings: The Return of the King 2003 8.9
Forrest Gump 1994 8.8
Fight Club 1999 8.8
Inception 2010 8.8
The Lord of the Rings: The Fellowship of the Ring 2001 8.8
The Lord of the Rings: The Two Towers 2002 8.7
```