Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!gatech!bbn!gateway!dsys.ncsl.nist.GOV!rbj From: rbj@dsys.ncsl.nist.GOV (Root Boy Jim) Newsgroups: comp.emacs Subject: dired sorting by date Message-ID: <8908311855.AA22846@dsys.ncsl.nist.gov> Date: 31 Aug 89 18:55:56 GMT Sender: news@bbn.COM Organization: National Institute of Standards and Technology formerly National Bureau of Standards Lines: 26 ? From: "Lynn D. Newton" ? Here's another way to sort by size which I just implemented ? today. (Designed by a friend, not me.) I just posted that yesterday. Well, at least you called me a friend :-) ? (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 | I tried to call, but they say your number has been disconnected. Root Boy Jim and the GNU Bohemians