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 253755 - serach Dependencies versus repo search is not sorted the same
Summary: serach Dependencies versus repo search is not sorted the same
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-24 18:01 UTC by skygo
Modified: 2015-07-27 22:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
comparison side by side (69.25 KB, image/png)
2015-07-24 18:01 UTC, skygo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description skygo 2015-07-24 18:01:12 UTC
Created attachment 154862 [details]
comparison side by side

Trying the maven test spec:
 phase Maven repository browser 
 Find in repository Test Case

finding jfreechart on central is not ordere the same than using the repo search

maybe good to have same ordering way.

Regards
Comment 1 Tomas Stupka 2015-07-27 16:27:01 UTC
there is a slight difference in how those two features work:

search:
- find splits the criteria by " " and creates a join of the results for each word in the given text
- search takes the whole search string as it is for the search criteria

sort:
- find sorts only alphabetically
- the search dialog sorts alphabetically, but also gives precedence to artifacts containing the search text directly - e.g. in artifactId

find could behave similar to search in the way it sorts, but then in case of a multi word search this could lead to some pretty "mixed up" sorting. 
On the other hand - doing so only in case when a one word criteria was given would lead to discrepancies between two finds in the way how they sort.

also that find and search aren't perfectly analogical  in the way they handle the search criteria

for now i would prefer to keep things as they are
Comment 2 skygo 2015-07-27 22:32:09 UTC
Thanks for the feedback. 
It's uncommon to do the two action at the same time.

I will wait until end of testing session and make a more "lazy" description in the testcase.

http://services.netbeans.org/synergy/client/app/index.html#/case/5463/suite/1926/v/1