Mailinglist Archive: opensuse-kde (46 mails)

< Previous Next >
Re: [opensuse-kde] Faulty Sort Order in Konqueror
  • From: Hugo Mahr <HugoMahr@xxxxxx>
  • Date: Fri, 29 Jun 2007 08:38:09 +0200
  • Message-id: <200706290838.10133.HugoMahr@xxxxxx>
Am Freitag, 29. Juni 2007 00:49 schrieb Robert Smits:
> I have a lot of old time radio files on my computer. They get downloaded as
> a series of files and then I try to put them in order to play or copy them
> to a folder. I have a problem with the sort order this gives.
>
> If I have a series of files with episode numbers in them Konqueror insists
> on sorting them like this
>
> Episode 1
> Episode 11
> Episode 111
> Episode 2
>
> They SHOULD be sorted like this
>
> Episode 1
> Episode 2
> Episode 11
> Episode 111
>
> I know Suse Linux and Konqueror aren't alone in this erroneous sorting
> method but there needs to be a way to make files sort correctly without
> having to go and rename them. I understand this form of sorting is called
> alphabetic sorting, but to me the next number in the sequence after 1
> should be 2, not 11. Anything else is just WRONG. It makes a lot of extra
> work in organiing playlists, etc.
>
> Thanks, Bob.
Hi,

as the konqueror does not do it:
If you store the names in a file, you could process it on the command line  
like:
    %: cat foolist  | sort -n -k 1 -k 2

Episode 1
Episode 2
Episode 11
Episode 111

And then you can copy the files or do what you want,
sort -n does a numerical sort. I think -k 1/-k2 is not required, but the 
system hasa another opinion :-))  .
Regards  Hugo
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-kde+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-kde+help@xxxxxxxxxxxx

< Previous Next >
References