From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kDj4DD5gyl4gGAAA0tVLHw (envelope-from ) for ; Sun, 24 May 2020 11:53:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +LYGCT5gyl4pHQAAB5/wlQ (envelope-from ) for ; Sun, 24 May 2020 11:53:34 +0000 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 F339F940C73 for ; Sun, 24 May 2020 11:53:32 +0000 (UTC) Received: from localhost ([::1]:54858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcpC6-0003aj-P8 for larch@yhetil.org; Sun, 24 May 2020 07:53:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcpBk-0003ac-6v for emacs-orgmode@gnu.org; Sun, 24 May 2020 07:53:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59462) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcpBj-0007fO-Ti; Sun, 24 May 2020 07:53:07 -0400 Received: from lns-bzn-32-82-254-31-120.adsl.proxad.net ([82.254.31.120]:60544 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jcpBj-0007ZJ-Gb; Sun, 24 May 2020 07:53:07 -0400 Received: by guerry (Postfix, from userid 1000) id 668D91A603BA; Sun, 24 May 2020 13:53:05 +0200 (CEST) From: Bastien To: stardiviner Subject: Re: org-agenda-sorting-strategy's sorting of deadline and schedule is opposed Organization: GNU References: <87eeu4b6a1.fsf@gmail.com> Date: Sun, 24 May 2020 13:53:05 +0200 In-Reply-To: <87eeu4b6a1.fsf@gmail.com> (stardiviner's message of "Sat, 07 Mar 2020 22:15:18 +0800") Message-ID: <87pnatsg66.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org Mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 0.49 X-TUID: 4bafHwj1Tq1H Hi, stardiviner writes: > org-agenda-sorting-strategy bug? Cannot list deadline items before scheduled items. > > With the following: > > #+begin_src emacs-lisp > (setq org-agenda-sorting-strategy > '((agenda time-up deadline-up scheduled-down ts-up habit-down priority-down category-keep) > (todo priority-down category-keep) > (tags priority-down category-keep) > (search category-keep)) > org-agenda-sorting-strategy-selected > '(time-up priority-down deadline-up scheduled-down ts-up habit-down category-keep)) > #+end_src > > The time-up is correctly shown first; however, all scheduled items are shown > next as opposed to all deadline items (the order should be the other way > around). Can you provide a more minimal configuration example, with the order expected and the order you get? As said in the reddit thread, the output of complex sorting strategies can be confusing, so being minimal here is the way to go. Thanks, -- Bastien