Path: utzoo!attcan!utgpu!watmath!att!dptg!rutgers!sun-barr!cs.utexas.edu!csd4.csd.uwm.edu!mailrus!ncar!asuvax!mcdphx!rave!lynn From: lynn@rave.phx.mcd.mot.com (Lynn D. Newton) Newsgroups: comp.emacs Subject: Re: dired sorting by date Message-ID: Date: 30 Aug 89 20:57:32 GMT References: <8908282221.AA19574@dsys.ncsl.nist.gov> <123916@sun.Eng.Sun.COM> <71028@yale-celray.yale.UUCP> Sender: listen@mcdphx.phx.mcd.mot.com Organization: Motorola MCD Lines: 18 In-reply-to: Duchier-Denys@cs.yale.edu's message of 30 Aug 89 00:02:07 GMT Here's another way to sort by size which I just implemented today. (Designed by a friend, not me.) (defun dired-sort-by-size (arg) ; s "Reread directory and sort by size. Reverse sort with prefix." (interactive "P") (revert-buffer) (let ((buffer-read-only nil)) (shell-command-on-region (point-min) (point-max) (concat "sort +4n" (and arg " -r")) t))) -- ================================================================= Lynn D. Newton | System Test Motorola MCD, Tempe, AZ | (Department of Heuristic Neology) (602) 437-3739 | "The bug stops here!" lynn@rave.phx.mcd.mot.com |