[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dired Sort Bug
- To: bug-emacs%mit-oz@MIT-MC.ARPA
- Subject: Dired Sort Bug
- From: Peter Gergely <GERGELY@DREA-XX.ARPA>
- Date: Thu 12 Dec 85 22:30:37-AST
- Phone-number: (902) 426-3100 x 215 [8:30am to 4:15pm Atlantic time]
- Postal-address: 9 Grove St., P.O. Box 1012, Dartmouth, NS B2Y 3Z7, Canada
I was doing a dired sort on size on our bulletin boards and noticed that
the sort came out incorrectly. The problem turned out to be some of the
author names like TCP-IP-REQUEST and any author names with a dash. The
solution is quite simple.
Change the following in & DIRED Sort:
q0-â¡F"e @ft Filenameâ :i1 â :i2 â 1;'
:i1 -2s-$α -@:fα_â¥â $@l â :i2 fs fdconv$â
to:
q0-â¡F"e @ft Filenameâ :i1 â :i2 â 1;'
:i1 -2sα$α -2s-$α -@:fα_â¥â $@l â :i2 fs fdconv$â
By the way, I added Sort on Author if anyone is interested. The changes
follow after the equal signs.
- Peter
========================================================================
;COMPARISON OF DREA:<EMACS>DIRED.EMACS.46 AND DREA:<EMACS>DIRED.EMACS.48
;OPTIONS ARE /3
**** FILE DREA:<EMACS>DIRED.EMACS.46, 1-2 (18)
!* <GERGELY.NEMACS>DIRED.EMACS.12, 26-Sep-83 15:19:49, Edit by GERGELY!
**** FILE DREA:<EMACS>DIRED.EMACS.48, 1-2 (18)
!* <EMACS>DIRED.EMACS.48, 12-Dec-85 22:09:26, Edit by GERGELY!
***************
**** FILE DREA:<EMACS>DIRED.EMACS.46, 17-7 (16235)
q0-â¡C"e @ft Chronological_â 1;'
q0-â¡F"e @ft Filenameâ :i1 â :i2 â 1;'
:i1 -2s-$α -@:fα_â¥â $@l â :i2 fs fdconv$â
**** FILE DREA:<EMACS>DIRED.EMACS.48, 17-7 (16226)
q0-â¡A"e @ft Authorâ 1;'
q0-â¡C"e @ft Chronological_â 1;'
q0-â¡F"e @ft Filenameâ :i1 â :i2 â 1;'
:i1 -2sα$α -2s-$α -@:fα_â¥â $@l â :i2 fs fdconv$â
***************
**** FILE DREA:<EMACS>DIRED.EMACS.46, 17-13 (16428)
:i1 â¥âª1 -fw@lâ :i2 \ â
q0-â¡S"e @ft Sizeâ 1;'
q0-â¡?"e @ft (C_Chronologically,_F_Filename,_S_Size,_R_Read_date,_W_Write_date)
**** FILE DREA:<EMACS>DIRED.EMACS.48, 17-14 (16452)
:i1 â¥âª1 -fwlâ :i2 \ â
q0-â¡S"e @ft Sizeâ 1;'
q0-â¡?"e @ft (A_Author,_C_Chronological,_F_File,_S_Size,_R_Read_date,_W_Write_date)
***************
**** FILE DREA:<EMACS>DIRED.EMACS.46, 17-29 (16928)
Q0-â¡F"E !* Special sort for filenames!
**** FILE DREA:<EMACS>DIRED.EMACS.48, 17-31 (16957)
Q0-â¡A"E
1F[^PCaseâ
â"L:'â :@L -S__$αâ:@Lâ1@Lâ
â¤'
Q0-â¡F"E !* Special sort for filenames!
1F[^PCaseâ
***************
-------