From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Human-readable file sorting Date: Sat, 20 Feb 2016 12:53:32 +0200 Message-ID: <83fuwnps9f.fsf@gnu.org> References: <87povs41xg.fsf@gnus.org> <87bn7c3yms.fsf@gnus.org> <87r3g7exb2.fsf@gnus.org> <83oabbpw6p.fsf@gnu.org> <56C83EEB.6000803@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1455965654 28194 80.91.229.3 (20 Feb 2016 10:54:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Feb 2016 10:54:14 +0000 (UTC) Cc: larsi@gnus.org, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 20 11:54:08 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aX5Au-0006bh-2n for ged-emacs-devel@m.gmane.org; Sat, 20 Feb 2016 11:54:08 +0100 Original-Received: from localhost ([::1]:59982 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aX5Aq-0005vJ-9N for ged-emacs-devel@m.gmane.org; Sat, 20 Feb 2016 05:54:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aX5Ad-0005uu-69 for emacs-devel@gnu.org; Sat, 20 Feb 2016 05:53:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aX5AZ-0006hj-WE for emacs-devel@gnu.org; Sat, 20 Feb 2016 05:53:51 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aX5AZ-0006he-St; Sat, 20 Feb 2016 05:53:47 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1337 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aX5AZ-0002rn-6w; Sat, 20 Feb 2016 05:53:47 -0500 In-reply-to: <56C83EEB.6000803@gmx.at> (message from martin rudalics on Sat, 20 Feb 2016 11:24:43 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200297 Archived-At: > Date: Sat, 20 Feb 2016 11:24:43 +0100 > From: martin rudalics > Cc: emacs-devel@gnu.org > > > Btw, MS-Windows filesystems sort files internally in the order you > > want. E.g., here's what I get for a directory I set up for testing > > this: > > > > (directory-files "~/data/tsort") > > => ("." ".." "file1.png" "file10.png" "file11.png" "file2.png" "file3.png" "file31.png" "file4.png" "file5.png" "file6.png" "file8.png" "file9.png") > > I suppose the OP wants "file2.png" listed before "file10.png". The Explorer already does that, using a special system API, and we could use it in Emacs as well.