Commits

Miki Tebeka committed f471341

sort lessons

Comments (0)

Files changed (2)

 Lessons
 -------
 
+* [Lesson 1 V2](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/01%2520-%2520Lesson.ipynb)
+* [Lesson 2 V2](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/02%2520-%2520Lesson.ipynb)
+* [03 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/03%2520-%2520Lesson.ipynb)
 * [04 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/04%2520-%2520Lesson.ipynb)
-* [09 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/09%2520-%2520Lesson.ipynb)
-* [07 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/07%2520-%2520Lesson.ipynb)
+* [05 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/05%2520-%2520Lesson.ipynb)
 * [06 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/06%2520-%2520Lesson.ipynb)
+* [07 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/07%2520-%2520Lesson.ipynb)
+* [08 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/08%2520-%2520Lesson.ipynb)
+* [09 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/09%2520-%2520Lesson.ipynb)
 * [10 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/10%2520-%2520Lesson.ipynb)
-* [Lesson 2 V2](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/02%2520-%2520Lesson.ipynb)
-* [Lesson 1 V2](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/01%2520-%2520Lesson.ipynb)
 * [11 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/11%2520-%2520Lesson.ipynb)
-* [08 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/08%2520-%2520Lesson.ipynb)
-* [05 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/05%2520-%2520Lesson.ipynb)
-* [03 - Lesson](http://nbviewer.ipython.org/urls/bitbucket.org/hrojas/learn-pandas/raw/master/lessons/03%2520-%2520Lesson.ipynb)
 
 from glob import glob
 import json
+import re
 
 header = '''
 Place for everything Pandas.
         fo.write('{}\n'.format(format_item(name=name, url=url)))
 
 
+def lesson_id(filename):
+    return int(re.search('[0-9]+', filename).group())
+
+
 def main():
-    nblist = notebooks()
+    nblist = sorted(notebooks(), key=lesson_id)
     with open('README.md', 'w') as fo:
         write_readme(nblist, fo)