From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#44597: 26.3; bibtex should allow reverse sorting Date: Mon, 07 Dec 2020 14:22:26 +0100 Message-ID: <87pn3lkay5.fsf@gnus.org> References: <87ima7yjp7.fsf@gnus.org> <87sg99vviz.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29102"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 44597@debbugs.gnu.org, Roland Winkler To: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 07 14:32:44 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmGdA-0007TI-An for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Dec 2020 14:32:44 +0100 Original-Received: from localhost ([::1]:50434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmGd9-0007BC-6C for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Dec 2020 08:32:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmGTo-0008Od-JA for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2020 08:23:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41329) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmGTl-0003Kr-Uc for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2020 08:23:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmGTl-0000Fo-R3 for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2020 08:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Dec 2020 13:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44597 X-GNU-PR-Package: emacs Original-Received: via spool by 44597-submit@debbugs.gnu.org id=B44597.1607347358922 (code B ref 44597); Mon, 07 Dec 2020 13:23:01 +0000 Original-Received: (at 44597) by debbugs.gnu.org; 7 Dec 2020 13:22:38 +0000 Original-Received: from localhost ([127.0.0.1]:52875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmGTN-0000Em-UM for submit@debbugs.gnu.org; Mon, 07 Dec 2020 08:22:38 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:36762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmGTM-0000EX-IC for 44597@debbugs.gnu.org; Mon, 07 Dec 2020 08:22:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gShFOcEdow/rnKrWMimFdaD3k1pm7VQZBxjAXpV6B6c=; b=elbxH6RLxpuJ8LSCdiTJNLtNKe KNg+NK2mnU1HlNW2aXyXXQEzRy+ZwcvJSTcwF3pKPS8qHcbKpSet2p++6Am5wBb5he8YqAFy4ye2k aE0vTL9TxGxYKgwIANHPNaDdq/cafexQ4K2tG+thPY8GQTVnLR3ae+x6FRyJbPstvhOw=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmGTD-0005lI-PH; Mon, 07 Dec 2020 14:22:30 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEWMbVafjHCpsZ9U QTq/wa3f1rnIxrD///8EdFpvAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+QMBw0MKxH3A5MAAAG7SURB VDjLlZLLUuswDIblaug6bhjWSQhZuxUP0AnGexZk3WZcv/8jIMlOywl05qCZxLY+6Zd8AQBr7a5b WVvDpvvVWtj9EXT/AXzXj70ffwBf7ArK2PsVgZXb+368A0oO/FPg/XO6TGkeF6AJ8gtJzEtvAkbx HfeaE7JAAeJ5JvYGH8YsoEBDK/DJpxRT1OUIfa4wojNdClphATo5k0PaKIkFaEJoGmLbxDXw3UkA DamIXQFriR0EBFlfwazAPZYtFiBBCggURAESLgvMYJsyUhCky2enWnQDIR/d22utOQ8FDFkopXmb EEyTG1MQ02L1lFK7n1YZbA1/l27JKCUWsBiD2+IYvoNvUaeXe2C4B36RmmU8px9gto8KphAv8XO6 gbPdTQKqAzqwXbiCFiBc0umDtkgI9YuCmUFFZCzxKRoG5KpBNli7J3kJAOT4Iz39w8SAaJ+vlVkF +SJdC0NEzJfHAVgb0eNEgEEm7FTo0MjDY00mJVyGmouAETkGLkS5UiNtsSg6N1sERNjvGo5AgPYp tij6HFABgjtKi+DIGGvRSarshKVQ2pWCLM4Fq9Kh1HaOMHdVGpE9fgHaLgewPOinBQAAACV0RVh0 ZGF0ZTpjcmVhdGUAMjAyMC0xMi0wN1QxMzoxMjo0MyswMDowMLCqNRIAAAAldEVYdGRhdGU6bW9k aWZ5ADIwMjAtMTItMDdUMTM6MTI6NDMrMDA6MDDB942uAAAAAElFTkSuQmCC X-Now-Playing: Nihiloxica's _Kaloli_: "Tewali Sukali" In-Reply-To: ("Francesco =?UTF-8?Q?Potort=C3=AC?="'s message of "Sun, 06 Dec 2020 17:16:42 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195223 Archived-At: Francesco Potort=C3=AC writes: >>Yes, I think introducing a variable to control the sorting would be a >>good idea. It'd default to `bibtex-lessp' (or rather, something that >>does the same), but (as you say) have an input that makes implementing >>other sorting functions easier. >> >>Patches welcome. :-) > > This is a patch that improves things, in my opinion. This is not the > ideal situation I mentioned above, but "il meglio =C3=A8 il nemico del be= ne" > (best is enemy of good). So here you are, this one satisfies my needs > and is hoefully a step towards a more general solution. [...] > Allowed non-nil values are: > -plain or t All entries are sorted alphabetically. > +plain or t Entries are sorted alphabetically. > +reverse Entries are sorted in reverse alphabetic order. > +date Entries are sorted by date. > +reversedate Entries are reverse sorted by date, starting with newest. Thanks; this looks like a good feature to me. I've added Roland to the Cc's; I'm guessing he'll have some comments. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no