From f6d48213f688e2b74923d84a926baaeb4004c0f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gra=C3=B1a?= Date: Tue, 3 Jun 2014 15:36:58 -0300 Subject: [PATCH] sort spiders in "scrapy list" cmd. closes #736 --- scrapy/commands/list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/commands/list.py b/scrapy/commands/list.py index f08d57f6f..0ea9c2313 100644 --- a/scrapy/commands/list.py +++ b/scrapy/commands/list.py @@ -11,5 +11,5 @@ class Command(ScrapyCommand): 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)