Sort the result of os.listdir to make the results deterministic

Different calls to listdir may return the files in a different order. This caused diffs of different versions of the py_docs.json file to be useless.

@neumino can you please merge this into your branch and rebuild rethinkdb/michel_md_docs:docs/rql/py_docs.json ?