We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Sort spider names on 'scrapy list' command
Hey there, 

i think the spider names on the `scrapy list` command should be order by name in the console output. 


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `scrapy/commands/list.py`
Content:
```
1 from __future__ import print_function
2 from scrapy.command import ScrapyCommand
3 
4 class Command(ScrapyCommand):
5 
6     requires_project = True
7     default_settings = {'LOG_ENABLED': False}
8 
9     def short_desc(self):
10         return "List available spiders"
11 
12     def run(self, args, opts):
13         crawler = self.crawler_process.create_crawler()
14         for s in crawler.spiders.list():
15             print(s)
16
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/scrapy/commands/list.py b/scrapy/commands/list.py
--- a/scrapy/commands/list.py
+++ b/scrapy/commands/list.py
@@ -11,5 +11,5 @@
 
     def run(self, args, opts):
         crawler = self.crawler_process.create_crawler()
-        for s in crawler.spiders.list():
+        for s in sorted(crawler.spiders.list()):
             print(s)

{"golden_diff": "diff --git a/scrapy/commands/list.py b/scrapy/commands/list.py\n--- a/scrapy/commands/list.py\n+++ b/scrapy/commands/list.py\n@@ -11,5 +11,5 @@\n \n     def run(self, args, opts):\n         crawler = self.crawler_process.create_crawler()\n-        for s in crawler.spiders.list():\n+        for s in sorted(crawler.spiders.list()):\n             print(s)\n", "issue": "Sort spider names on 'scrapy list' command\nHey there, \n\ni think the spider names on the `scrapy list` command should be order by name in the console output. \n\n", "before_files": [{"content": "from __future__ import print_function\nfrom scrapy.command import ScrapyCommand\n\nclass Command(ScrapyCommand):\n\n    requires_project = True\n    default_settings = {'LOG_ENABLED': False}\n\n    def short_desc(self):\n        return \"List available spiders\"\n\n    def run(self, args, opts):\n        crawler = self.crawler_process.create_crawler()\n        for s in crawler.spiders.list():\n            print(s)\n", "path": "scrapy/commands/list.py"}], "after_files": [{"content": "from __future__ import print_function\nfrom scrapy.command import ScrapyCommand\n\nclass Command(ScrapyCommand):\n\n    requires_project = True\n    default_settings = {'LOG_ENABLED': False}\n\n    def short_desc(self):\n        return \"List available spiders\"\n\n    def run(self, args, opts):\n        crawler = self.crawler_process.create_crawler()\n        for s in sorted(crawler.spiders.list()):\n            print(s)\n", "path": "scrapy/commands/list.py"}]}