From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id ALEbARDo6mXdzAAAe85BDQ:P1 (envelope-from ) for ; Fri, 08 Mar 2024 11:27:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id ALEbARDo6mXdzAAAe85BDQ (envelope-from ) for ; Fri, 08 Mar 2024 11:27:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="o/f4LjgT"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709893647; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Rg7s/9BU56isdyZGILTxrJuRWScVNYEcLHm7GzVfjls=; b=NGtt1DFNYE3Bwz5nw8VTXUZLiCw/lja0EdWI8khhZy2cgj9Dm2TIpRh3eg+ypJUTR4BG1k MeAZHfy7FQcHmXyAqaGdReLQHhjWYHLL7LdeDp3au0IAveojep4KrXmqp6Jd+viTtFjjWs ocK/TmIRGbaEWim08DKaoQz2vnNh0jPISfQrL5cc6fekyg+W7vozk0cDwey5oW0dJruAiZ oR9GTRERAmKGzMsTz+5X9fX8ntqrUjow7BzqVlKP51mGvHpzXyCkHmkeGBbuw0wQXxB6DJ hx5iK3QdagvS9fkywtSyb+IEeFNeW0Ti0Gz+wRXOHKvRZPG3DRg1O3b3xI3QDg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="o/f4LjgT"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709893647; a=rsa-sha256; cv=none; b=ho9DInU8rW4LTnsuOdDcp9d898976fQlY+oIYylr0tXjkZcM+Ccf07ETNaklfMTJVC1k3d eIEOpwt7N9qgijBztYTHf+xQCO72TkeD19osL6BcdaSapU8MOPleO/HgwOJCHIVnWHbfws TaRFiEcjd/73H05aHkHgrcp1Zfh4nx4Az0SivJKweUoqDgTziAX3+/Ys7Zg4zznaNL9hHs Ofha/nT1/BN2PPogK/NDQYOqVIkciTvQ9s0YYMvN+Gm0et05x9VeWykqgrF0/QXRnOaM6s rxnUkqrJFiygQ4b+1dnTMOd2flj4e1NOXAkeyNH3VjcdKmaW39Dx7AuTQD9+UQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AA9E862790 for ; Fri, 8 Mar 2024 11:27:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riXQa-0002Xq-4V; Fri, 08 Mar 2024 05:26:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riXQX-0002W9-Mc for emacs-orgmode@gnu.org; Fri, 08 Mar 2024 05:26:09 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riXQT-0006Us-QO for emacs-orgmode@gnu.org; Fri, 08 Mar 2024 05:26:09 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9B76A240101 for ; Fri, 8 Mar 2024 11:26:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1709893563; bh=pu0lMN17crTL9b9fO6KYBt/FE/waONPpmz6gpVdxTeo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=o/f4LjgTTAxPcbViJFa4F6F3Zrj5ESiISekpu6+0+QqoXfRi3IJxdJfcy3lBgL19j mcFR7OfXDlG2gH4vgaMLiX7dh6BhnB1N2hzAtAP30lU/5tpVZesc4Nr5iavVJ6Da+b 2esHEb9z8nlk/0PGFh4usBiLqX5QP3jHsNPjtbLODOCHpMb3N8H03sO56D5l6KcEsd eDKQxqjzS5pzvJTFfzbqmhHvasgi49RwAwxAuYk6kME69nBCFDt0VmJw1VeiqgaKxu hEWU5TIljVurEyirk6/M/CxiPV0aUFw3aZq0hpTqzeclymaDmQ7KQtsNpzFZnaoGWt C8ePl5YQy8i3A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Trj4V4GVNz6twB; Fri, 8 Mar 2024 11:26:02 +0100 (CET) From: Ihor Radchenko To: Bastien Guerry Cc: Sacha Chua , emacs list , Timothy Subject: Re: [DISCUSSION] Add "Recent News" to orgmode.org In-Reply-To: <87wmqdxmds.fsf@bzg.fr> References: <877cjk10gs.fsf@localhost> <87wmqudjaw.fsf@bzg.fr> <874jdwn6hf.fsf@localhost> <87edczlf1t.fsf@bzg.fr> <87jzmrcwy9.fsf@localhost> <87edclz1r6.fsf@bzg.fr> <87il1xjl0q.fsf@localhost> <87wmqdxmds.fsf@bzg.fr> Date: Fri, 08 Mar 2024 10:30:09 +0000 Message-ID: <87ttlhhv7y.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.47 X-Spam-Score: -9.47 X-Migadu-Queue-Id: AA9E862790 X-Migadu-Scanner: mx13.migadu.com X-TUID: Wsj59ltdWnQh --=-=-= Content-Type: text/plain Bastien Guerry writes: >> Also, it looks like https://tracker.orgmode.org/index.org does not sort >> links by date. It would be nice if top 5 links were also the most recent. > > Yes, indeed. I'll see when I can hack on this. Help from Clojure > hackers is welcome here: https://git.sr.ht/~bzg/woof Something like the attached maybe. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-src-bzg-data.clj-get-data-Sort-list-of-entries-by-da.patch >From 2e170f073ae258d27680baf16f8db1aa2dcf9b78 Mon Sep 17 00:00:00 2001 Message-ID: <2e170f073ae258d27680baf16f8db1aa2dcf9b78.1709893748.git.yantar92@posteo.net> From: Ihor Radchenko Date: Fri, 8 Mar 2024 13:28:12 +0300 Subject: [PATCH] src/bzg/data.clj (get-data): Sort list of entries by date (latest first) Link: https://orgmode.org/list/87wmqdxmds.fsf@bzg.fr --- src/bzg/data.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bzg/data.clj b/src/bzg/data.clj index 99ab66d..333dd6a 100644 --- a/src/bzg/data.clj +++ b/src/bzg/data.clj @@ -74,6 +74,8 @@ :requests (fetch/requests source-id search) :patches (fetch/patches source-id search) :news (fetch/news source-id search)) + ;; Display the latest first. + resources (reverse (sort resources)) headers (condp = format "rss" {"Content-Type" "application/xml"} "md" {"Content-Type" "text/plain; charset=utf-8"} -- 2.43.0 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--