bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch: sorting by version


From: Federico Di Gregorio
Subject: patch: sorting by version
Date: 03 Apr 2002 16:23:03 +0200

sorry if this is not the right mail address, but i didn't find any other
apart from sort author private mail. 

lately i found myself in need of sorting a file on version numbers, like
1.0.1 or 1.12-27. i patched sort to use the same algorithm used by
debian's dpkg and it worked for me. yes, i know that version number
sorting is quite arbitrary but an half working algorithm is better than
nothing. patch is attached.

thank you very much for your time,
federico
 
-- 
Federico Di Gregorio
Debian GNU/Linux Developer & Italian Press Contact        address@hidden
INIT.D Developer                                           address@hidden
                           Don't dream it. Be it. -- Dr. Frank'n'further

Attachment: sort.c.diff
Description: Text document

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]