From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: sort headers by tags possible? Date: Mon, 08 Apr 2019 17:58:09 -0400 Message-ID: <87y34kjh1q.fsf@kyleam.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:38916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDcHZ-0004TO-Lm for emacs-orgmode@gnu.org; Mon, 08 Apr 2019 17:58:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDcHY-0000Ok-Pi for emacs-orgmode@gnu.org; Mon, 08 Apr 2019 17:58:25 -0400 Received: from pb-smtp21.pobox.com ([173.228.157.53]:64288) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hDcHX-0000FT-9f for emacs-orgmode@gnu.org; Mon, 08 Apr 2019 17:58:23 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Xebar Saram , org mode Xebar Saram writes: > Hi all > > does anyone know if its possible to sort headers by tags? > lets say i have this > > * header 1 . :3star: > * header 2 . :4star: > * header 3 . :3star: > > can i sort by tags (alphnumeric) so all 3star tags with start followed by > 4star etc Try calling org-sort and sorting on the TAGS property: `C-c ^ r` then selecting "TAGS". Offhand I don't know how that handles multiple tags, but, if that doesn't do what you want, you can always supply a custom key and/or comparison function to org-sort-entries (even when calling it interactively). -- Kyle