Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: File sorting issue in Dolphin and Gwenview

  1. #1

    Default File sorting issue in Dolphin and Gwenview

    Hi guys,

    I recently noticed the file name sorting issue in Dolphin and Gwenview. I am currently using KDE Applications 20.04.1 in openSUSE Tumbleweed snapshot 20200526.

    For me, neither Natural sorting nor Alphabetical sorting could give me the right (to me) order of sorting. For example, I create a series of files in a folder and sort them,
    Code:
    for ((i=0;i<101;i++)) ; do touch $i.jpg ; done
    The files are always sorted as,
    Code:
    0.jpg
    1.jpg
    10.jpg
    100.jpg
    11.jpg
    12.jpg
    ...
    It is the same as the sorting in Konsole using `ls -1`, as well as when viewing the folder or browsing by Left/Right Arrow keys in Gwenview.

    Do you guys have this problem? Or, it's just because of my wrong settings?

    I also noticed that the Dolphin will not change sorting order after change of setting unless a new instance of Dolphin is started.

    I have read a post by wolfi323 on 16-Feb-2017, saying the patch had not been accepted. But I see that the bug has been fixed in Framework 5.34. Then, I am confused.

    If there is nothing wrong with sorting feature in KDE, how should I do to solve the issues?

    Thanks in advance.

    zz
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    13,810
    Blog Entries
    3

    Default Re: File sorting issue in Dolphin and Gwenview

    Ǐ'm not sure why you think that a problem.

    The sort order that you report seems correct. That's the collating sequence order for ASCII characters.
    openSUSE Leap 15.2; KDE Plasma 5.18.5;

  3. #3

    Default Re: File sorting issue in Dolphin and Gwenview

    Quote Originally Posted by nrickert View Post
    Ǐ'm not sure why you think that a problem.

    The sort order that you report seems correct. That's the collating sequence order for ASCII characters.
    I thought the right order should be,

    Code:
    0.jpg
    1.jpg
    2.jpg
    3.jpg
    ...
    9.jpg
    10.jpg
    11.jpg
    12.jpg
    ...
    Is this the natural sorting?
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    28,813
    Blog Entries
    15

    Default Re: File sorting issue in Dolphin and Gwenview

    Hi
    The command ls -v, ls -lv etc will work in a terminal running bash....
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5

    Default Re: File sorting issue in Dolphin and Gwenview

    Quote Originally Posted by malcolmlewis View Post
    Hi
    The command ls -v, ls -lv etc will work in a terminal running bash....
    Thanks. That indeed gives file list in natural order in terminal. But how to make natural sorting work for Dolphin and Gwenview?
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    28,813
    Blog Entries
    15

    Default Re: File sorting issue in Dolphin and Gwenview

    Quote Originally Posted by cnzhx View Post
    Thanks. That indeed gives file list in natural order in terminal. But how to make natural sorting work for Dolphin and Gwenview?
    Hi
    I use GNOME (Nautilus) which uses natural sorting, but it should be configurable according to https://docs.kde.org/stable5/en/appl...g-dolphin.html
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7

    Default Re: File sorting issue in Dolphin and Gwenview

    Quote Originally Posted by malcolmlewis View Post
    Hi
    I use GNOME (Nautilus) which uses natural sorting, but it should be configurable according to https://docs.kde.org/stable5/en/appl...g-dolphin.html
    I knew the settings but it actually did not work. So I asked here.
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    28,813
    Blog Entries
    15

    Default Re: File sorting issue in Dolphin and Gwenview

    Quote Originally Posted by cnzhx View Post
    I knew the settings but it actually did not work. So I asked here.
    Hi
    Then I would assume the bug is not fixed.... You could try creating a test user, login and see if it duplicates?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  9. #9
    Join Date
    Mar 2020
    Location
    São Leopoldo, RS, Brazil
    Posts
    152

    Default Re: File sorting issue in Dolphin and Gwenview

    Quote Originally Posted by cnzhx View Post
    I knew the settings but it actually did not work. So I asked here.
    Restart Dolphin after changing to use Natual sorting mode.
    openSUSE Tumbleweed

  10. #10

    Default Re: File sorting issue in Dolphin and Gwenview

    FTR, I just ran this code from the first post:
    Code:
    for ((i=0;i<101;i++)) ; do touch $i.jpg ; done
    Then opened the folder in dolphin, and the order was as I would expect with natural sorting, i.e. 0.jpg, 1.jpg, ... , 100.jpeg.

    What locale are you using?
    I.e. what's the output of running "locale" in konsole inside your user session?

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •