prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <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.
  
  </issue>
  <code>
  [start of site_list.py]
  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 of site_list.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
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"}]}