prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Sites sorting
  It may be a good idea to sort the sites in sites.md and data.json alphabetically. When I'm looking for sites to add, I always have to Ctrl+F in this repo or just scroll through the file... Also when seeing the results, it's just chaos.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `site_list.py`
  Content:
  ```
  1 """Sherlock: Supported Site Listing
  2 
  3 This module generates the listing of supported sites.
  4 """
  5 import json
  6 
  7 with open("data.json", "r", encoding="utf-8") as data_file:
  8     data = json.load(data_file)
  9 
  10 with open("sites.md", "w") as site_file:
  11     site_file.write(f'## List Of Supported Sites ({len(data)} Sites In Total!)\n')
  12 
  13     index = 1
  14     for social_network in data:
  15         url_main = data.get(social_network).get("urlMain")
  16         site_file.write(f'{index}. [{social_network}]({url_main})\n')
  17         index = index + 1
  18 
  19 print("Finished updating supported site listing!")
  20
  ```
  --- 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()
  
  ```
  
golden_diff: diff --git a/site_list.py b/site_list.py
  --- a/site_list.py
  +++ b/site_list.py
  @@ -7,6 +7,11 @@
   with open("data.json", "r", encoding="utf-8") as data_file:
       data = json.load(data_file)
   
  +sorted_json_data = json.dumps(data, indent=2, sort_keys=True)
  +
  +with open("data.json", "w") as data_file:
  +    data_file.write(sorted_json_data)
  +
   with open("sites.md", "w") as site_file:
       site_file.write(f'## List Of Supported Sites ({len(data)} Sites In Total!)\n')
  
verification_info: {"golden_diff": "diff --git a/site_list.py b/site_list.py\n--- a/site_list.py\n+++ b/site_list.py\n@@ -7,6 +7,11 @@\n with open(\"data.json\", \"r\", encoding=\"utf-8\") as data_file:\n     data = json.load(data_file)\n \n+sorted_json_data = json.dumps(data, indent=2, sort_keys=True)\n+\n+with open(\"data.json\", \"w\") as data_file:\n+    data_file.write(sorted_json_data)\n+\n with open(\"sites.md\", \"w\") as site_file:\n     site_file.write(f'## List Of Supported Sites ({len(data)} Sites In Total!)\\n')\n", "issue": "Sites sorting\nIt may be a good idea to sort the sites in sites.md and data.json alphabetically. When I'm looking for sites to add, I always have to Ctrl+F in this repo or just scroll through the file... Also when seeing the results, it's just chaos.\n", "before_files": [{"content": "\"\"\"Sherlock: Supported Site Listing\n\nThis module generates the listing of supported sites.\n\"\"\"\nimport json\n\nwith open(\"data.json\", \"r\", encoding=\"utf-8\") as data_file:\n    data = json.load(data_file)\n\nwith open(\"sites.md\", \"w\") as site_file:\n    site_file.write(f'## List Of Supported Sites ({len(data)} Sites In Total!)\\n')\n\n    index = 1\n    for social_network in data:\n        url_main = data.get(social_network).get(\"urlMain\")\n        site_file.write(f'{index}. [{social_network}]({url_main})\\n')\n        index = index + 1\n\nprint(\"Finished updating supported site listing!\")\n", "path": "site_list.py"}], "after_files": [{"content": "\"\"\"Sherlock: Supported Site Listing\n\nThis module generates the listing of supported sites.\n\"\"\"\nimport json\n\nwith open(\"data.json\", \"r\", encoding=\"utf-8\") as data_file:\n    data = json.load(data_file)\n\nsorted_json_data = json.dumps(data, indent=2, sort_keys=True)\n\nwith open(\"data.json\", \"w\") as data_file:\n    data_file.write(sorted_json_data)\n\nwith open(\"sites.md\", \"w\") as site_file:\n    site_file.write(f'## List Of Supported Sites ({len(data)} Sites In Total!)\\n')\n\n    index = 1\n    for social_network in data:\n        url_main = data.get(social_network).get(\"urlMain\")\n        site_file.write(f'{index}. [{social_network}]({url_main})\\n')\n        index = index + 1\n\nprint(\"Finished updating supported site listing!\")\n", "path": "site_list.py"}]}