Skip to content

Commit 85fbcbb

Browse files
authored
Merge pull request #99 from rootvc/claude/issue-93-20250529_225249
fix: sort portfolio companies alphabetically on geocities page
2 parents 50ec29e + 09d02f8 commit 85fbcbb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/geo.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ function buildGeoPage() {
55
whois.innerHTML = whoisRoot.split(" Try")[0];
66

77
const portfolioTable = document.getElementById("portfolio");
8-
for (p in portfolio) {
8+
const sortedPortfolioKeys = Object.keys(portfolio).sort((a, b) =>
9+
portfolio[a].name.localeCompare(portfolio[b].name)
10+
);
11+
for (const p of sortedPortfolioKeys) {
912
const row = portfolioTable.insertRow(-1);
1013
const logoCell = row.insertCell();
1114
const descriptionCell = row.insertCell();

0 commit comments

Comments
 (0)