From 47d2800e8fdf4d36a7d4642028c648bc0c03208c Mon Sep 17 00:00:00 2001 From: Nathaniel Watson Date: Mon, 18 May 2015 22:53:22 +1200 Subject: [PATCH] Changed the generator script so that the icons are in alphabetical order in the generated stencil. --- generate-xml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-xml.py b/generate-xml.py index 4437125..f417893 100644 --- a/generate-xml.py +++ b/generate-xml.py @@ -8,7 +8,7 @@ name_re = re.compile(r'.+\/(.+?)\/svg\/production\/ic_(.+)_') src_path = Path('./material-design-icons/') -sprite_files = list(src_path.glob('**/svg/production/*24px.svg')) +sprite_files = sorted(list(src_path.glob('**/svg/production/*24px.svg')), key=lambda file: file.as_posix()) files_element = etree.Element("files") # set up the output dir