git: ecb3e66e92 - main - ports.cgi always sort by release on the client side

From: Wolfram Schneider <wosch_at_FreeBSD.org>
Date: Mon, 02 Feb 2026 07:44:11 UTC
The branch main has been updated by wosch:

URL: https://cgit.FreeBSD.org/doc/commit/?id=ecb3e66e92efc7606ad2c182778054fc0efecd37

commit ecb3e66e92efc7606ad2c182778054fc0efecd37
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2026-02-02 07:43:31 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2026-02-02 07:44:02 +0000

    ports.cgi always sort by release on the client side
---
 website/content/en/cgi/ports.cgi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi
index ec920242da..9c79aa96ca 100755
--- a/website/content/en/cgi/ports.cgi
+++ b/website/content/en/cgi/ports.cgi
@@ -98,6 +98,9 @@ function sort_table(column_index) {
     // re-append in sorted order
     rows.forEach(row => tbody.appendChild(row));
 }
+
+// always sort by release
+document.addEventListener("DOMContentLoaded", function() { sort_table(0) });
 </script>
 
 EOF