diff --git a/git/repository.py b/git/repository.py
index 2224e99..7c5c113 100644
--- a/git/repository.py
+++ b/git/repository.py
}
)
+ repos.sort(
+ # sort by owner (empty last), then by owner name, then by repo name
+ key=lambda repo: (
+ not (repo.get("owner") or "").strip(),
+ (repo.get("owner") or "").lower(),
+ repo["name"].lower(),
+ )
+ )
return repos
diff --git a/templates/commits.html b/templates/commits.html
index 933a96e..1723ee0 100644
--- a/templates/commits.html
+++ b/templates/commits.html
{% block content %}
<h2>Commits</h2>
- <table width="100%">
+ <table>
<thead>
<tr style="font-weight: bold;">
<td>Commit</td>
diff --git a/templates/overview.html b/templates/overview.html
index 6db0064..2a83efb 100644
--- a/templates/overview.html
+++ b/templates/overview.html
{% block content %}
<h2>{{ repo_name }}</h2>
<h3>Latest commits</h3>
-<table width="100%">
+<table>
<thead>
<tr style="font-weight: bold;">
<td>Commit</td>