Deutsch English Français Italiano |
<v52a1f$2lkuv$5@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: vallor <vallor@cultnix.org> Newsgroups: comp.lang.c Subject: Re: Baby X is bor nagain Date: Thu, 20 Jun 2024 22:21:36 -0000 (UTC) Organization: A noiseless patient Spider Lines: 31 Message-ID: <v52a1f$2lkuv$5@dont-email.me> References: <v494f9$von8$1@dont-email.me> <v4emki$28d1b$1@dont-email.me> <20240613174354.00005498@yahoo.com> <v4okn9$flpo$2@dont-email.me> <20240617002924.597@kylheku.com> <v4pddb$m5th$1@dont-email.me> <20240618115650.00006e3f@yahoo.com> <v4rv0o$1b7h1$1@dont-email.me> <20240618184026.000046e1@yahoo.com> <v4sd75$1ed31$1@dont-email.me> <877celzx14.fsf@nosuchdomain.example.com> <v4u85k$1t2pu$2@dont-email.me> <v4ucmn$1u14i$1@dont-email.me> <v4v2br$22c0m$1@dont-email.me> <v4v5nu$230rh$2@dont-email.me> <v4vfrn$24rv6$1@dont-email.me> <v50n9s$2fkko$1@dont-email.me> <v50poh$2g4ha$1@dont-email.me> <87iky3svqh.fsf@bsb.me.uk> <86y16zhcy3.fsf@linuxsc.com> <v51mvd$2lhe2$1@dont-email.me> <87v823wdhw.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 21 Jun 2024 00:21:36 +0200 (CEST) Injection-Info: dont-email.me; posting-host="a414156ff05630fd2d65fa3742155188"; logging-data="2806751"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DQpq6bfoiGMpAtaP2a92B" User-Agent: Pan/0.159 (Vovchansk; 873418b; Linux-6.9.5) Cancel-Lock: sha1:zDZgyBhedU0x+NC/apoEAOyzxlI= X-Face: \}2`P"_@pS86<'EM:'b.Ml}8IuMK"pV"?FReF$'c.S%u9<Q#U*4QO)$l81M`{Q/n XL'`91kd%N::LG:=*\35JS0prp\VJN^<s"b#bff@fA7]5lJA.jn,x_d%Md$,{.EZ Bytes: 2993 On Thu, 20 Jun 2024 13:44:27 -0700, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote in <87v823wdhw.fsf@nosuchdomain.example.com>: > Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes: > [...] >> And I see that using Python's getkey() function to swap "_D" and "_H" >> would be a way to solve this. But it's far from obvious how to set up a >> custom sort. > > And you still think comp.lang.c is the place to talk about it? > > If the links I already posted aren't sufficiently helpful (I expected > they would be), comp.lang.python exists and is reasonably active. > >> Incidentally you might like the default sort in my ls command, now in >> the Baby X FileSystem shell. There's also a separate programs that runs >> under the native shell - of course I developed the command on native >> host filesystems first. It uses a natural sort so that "Chapter 10" >> sorts after and not before "Chapter 2". > > GNU coreutils ls has a "-v" or "--sort=version" option that does this. I just posted a python program to comp.lang.python that uses glibc's strverscmp(3) to sort input parameters. There is also a separate thread in comp.unix.shell where this has come up. -- -v