This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 35069 - File sorting is inconsistent in Explorer [Filesystems]
Summary: File sorting is inconsistent in Explorer [Filesystems]
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P4 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-23 00:27 UTC by honglin
Modified: 2008-12-22 15:49 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description honglin 2003-07-23 00:27:27 UTC
Actually, this bug is in Rainier build.

Ivan noticed that the Explorers file sort order is
inconsistent.
 
Goto /net/djomolungma/export/home/test/mt and take
a look.
 
some files have the executable before the .c[c]
 	ab[.cc], list[.c]
others are backward
 	fork1[.c], idle.cc]
Comment 1 Thomas Preisler 2003-08-05 01:15:52 UTC
bug has been confirmed.....
Comment 2 Thomas Preisler 2003-08-06 21:37:09 UTC
Here is what happens:

If CPP module is not involved (enabled/installed/...), .c or .cc files
are not recognized by any loaders and their filenames are returned as
their true disk file names to the folder sorter, and you will see
correctly sorted files in the folder. If the CPP module is enabled,
files with suffixes .c, .cc (and others) are recognized by the
dataloaders from the CPP module and their file names are now returned
as the base names to the folder sorter causing randomness in the
sorting (the sorter sees the name test for both test and test.c). This
is because the sorter uses getName() to aquire the name. It should
probably include the suffix when sorting.

To reproduce this bug without the cpp module, create a folder with the
following files:

aaa
aaa.java
bbb
bbb.java
ccc
ccc.java
ddd
ddd.java

and view the contents of the folder with and without the Java modules
turned on. You will see the same behavior.

I will reassign to openide....
Comment 3 _ ttran 2003-08-11 08:15:02 UTC
this is somewhere b/w DS and Nodes.  David K please investigate
Comment 4 David Konecny 2003-08-12 17:12:31 UTC
Fixed in:
Checking in src/org/openide/loaders/FolderComparator.java
new revision: 1.3; previous revision: 1.2

Btw. should I integrate this fix into RAINIER branch. It is P4 so I
guess it is not that severe.
Comment 5 Lukas Hasik 2003-09-04 16:15:44 UTC
verified in dev build
Comment 6 Lukas Hasik 2003-09-04 16:18:23 UTC
sorry, I'll leave verification on honglin or thp when it'll be fixed
in release35R branch.

verified in main trunk.
Comment 7 Lukas Hasik 2003-09-04 16:18:53 UTC
x
Comment 8 Marian Mirilovic 2005-07-15 07:49:51 UTC
closed