次のようなテーブルがあります。
| id | name | color |
------+--------+---------
| 1 | pear | green |
| 2 | apple | red |
| 3 | banana | yellow |
| 4 | grape | purple |
「名前」列を使用してアルファベット順に並べ替え、この新しい順序で id (自動インクリメント) をリセットして、次のようにします。
| id | name | color |
------+--------+---------
| 1 | apple | red |
| 2 | banana | yellow |
| 3 | grape | purple |
| 4 | pear | green |
質問: MYSQL でこれを行うにはどうすればよいですか?