Bug 234373 - ark mixes folders and files when sorting them
Summary: ark mixes folders and files when sorting them
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Raphael Kubo da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-14 19:05 UTC by
Modified: 2011-05-15 01:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.6.4
Sentry Crash Report:


Attachments
image file dispaying mixed folders and files (50.60 KB, image/png)
2010-04-16 20:50 UTC,
Details
Image showing files/folders mized after latest fix (50.06 KB, image/png)
2010-04-23 03:26 UTC,
Details
image showing files/folders mixed wjem hitting image or date tabs (75.80 KB, image/png)
2010-05-07 08:02 UTC,
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 2010-04-14 19:05:13 UTC
Version:           2.14 (using 4.4.2 (KDE 4.4.2), Mandriva Linux release 2010.0 (Official) for x86_64)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.31.12-desktop-3mnb

When sorting files, lets for example use the sorte by name example, ark isnt able to first sort folders and then sort the files, it simply sorts folders and files all mixed, it just considers the name, doesnt take in consideration if is a folder or a file.
Comment 1 Raphael Kubo da Costa 2010-04-16 18:56:30 UTC
If I sort by name here, the folders are sorted, and the files inside earch folder is sorted as well. Isn't this what happens for you?
Comment 2 2010-04-16 20:50:16 UTC
Created attachment 42827 [details]
image file dispaying mixed folders and files

In the attachment, there is a file named index.desktop that is displayed just by name, due to that appears in the middle of other folders, if this isnt buggy behaviour i dont know what to call it.
Comment 3 Raphael Kubo da Costa 2010-04-16 21:02:58 UTC
Dude, calm down :D

Only now have I understood what your issue actually was. Confirmed, it'd be nice to put folders first.
Comment 4 Raphael Kubo da Costa 2010-04-16 21:22:49 UTC
SVN commit 1115538 by rkcosta:

Put folders before files when sorting.

BUG: 234373


 M  +8 -0      archivemodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1115538
Comment 5 Raphael Kubo da Costa 2010-04-16 21:23:47 UTC
SVN commit 1115539 by rkcosta:

Backport r1115538.

Put folders before files when sorting.

CCBUG: 234373


 M  +8 -0      archivemodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1115539
Comment 6 2010-04-23 03:26:24 UTC
Created attachment 42979 [details]
Image showing files/folders mized after latest fix

This fix it has only fixed half of the problem since when you click in the date tab for example, to sort first recent items, then it sorts first files and then folders, of course this depends on the date.

The correct behaviour it would be to continue showing first the folders.
Comment 7 2010-04-23 03:27:21 UTC
Reopening it as explained in last attachment
Comment 8 2010-05-07 08:02:47 UTC
Created attachment 43325 [details]
image showing files/folders mixed wjem hitting image or date tabs

I didnt had correct image in wich we can see that if the tab size or date are used, then will reappear files mixed with folders.

So im attaching a new image to show correctly what im saying.
Comment 9 Raphael Kubo da Costa 2010-12-08 02:19:28 UTC
Changing the default assignee in the currently open Ark bug reports to me.
Comment 10 Raphael Kubo da Costa 2011-05-15 01:02:37 UTC
SVN commit 1231926 by rkcosta:

Always sort folders before files.

BUG: 234373
FIXED-IN: 4.6.4


 M  +8 -4      archivemodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1231926
Comment 11 Raphael Kubo da Costa 2011-05-15 01:04:38 UTC
SVN commit 1231929 by rkcosta:

Always sort folders before files.

Forwardport of r1231926.

CCBUG: 234373

 M  +8 -4      archivemodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1231929
Comment 12 Raphael Kubo da Costa 2011-05-15 01:06:08 UTC
SVN commit 1231930 by rkcosta:

Mention Ark bug 234373.

CCBUG: 234373


 M  +1 -0      changelog_branch_4_6.xml  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1231930