mockmartin / fme-alfresco-extensions

Automatically exported from code.google.com/p/fme-alfresco-extensions
0 stars 0 forks source link

Taq Query Dashlet enhancement: Sort Tag list #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Follow normal steps to add and configure dashlet

What is the expected output? What do you see instead?
*Tag list should be sorted for ease of browsing and finding
*Instead the list is ordered in the order that the tags are added which can 
result in an apparently random ordered list

What version of the product are you using? On what operating system?
Taq Query Dashlet 0.3.1

Please provide any additional information below.

Original issue reported on code.google.com by mu...@dsty.ac.jp on 7 Feb 2012 at 11:33

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r151.

Original comment by jpfitzne...@gmail.com on 8 Feb 2012 at 10:11

GoogleCodeExporter commented 8 years ago
I guess you're using SOLR as search subsystem?
There seems to be an issue if you use a short QNAME (e.g. cm:name) as sort 
field.
We therefore now using {http://www.alfresco.org/model/content/1.0}name

Result set should now be sorted by name (ascending)

Original comment by ecm.exp...@gmail.com on 8 Feb 2012 at 10:15

GoogleCodeExporter commented 8 years ago
fixed jar: 
http://code.google.com/p/fme-alfresco-extensions/downloads/detail?name=tag-query
-dashlet-0.3.2.jar

Original comment by ecm.exp...@gmail.com on 8 Feb 2012 at 10:18

GoogleCodeExporter commented 8 years ago
It is pretty much working now but the ASCII sort seems a little off.  Sort 
result:
1.1 abc
1.2 abc
1. abc

i.e. it is placing ascii 32 (space) below numbers.  If the space is changed to 
a - (dash) the dash still comes after the numbers.

Should I file a separate issue?

Original comment by mu...@dsty.ac.jp on 10 Feb 2012 at 12:19

GoogleCodeExporter commented 8 years ago
well, you should observe the same sort order when you're using the tag-search 
within a document library (because the same repository tier webscript is used).
From my point of view the sort order is correct (it's how Alfresco is sorting):
1.1 abc
1.2 abc
1. abc

Executing an alphabetic sort "1" is smaller than " " or "-" or "a"...
But feel free to open Issue here (https://issues.alfresco.com/jira/) or raise a 
support ticket if you're an enterprise customer.

Original comment by ecm.exp...@gmail.com on 10 Feb 2012 at 12:27

GoogleCodeExporter commented 8 years ago
hi,
alfresco seems to remove spaces before sorting, e.g. you'll get the following 
sort order:
1.1 abc
1. 1abc
1.2 abc

cheers, jan

Original comment by ecm.exp...@gmail.com on 10 Feb 2012 at 4:30

GoogleCodeExporter commented 8 years ago
I think it removes more than just spaces, i.e. the dash has no effect on the 
order either.  As I tried a few other characters too, I would hazard a guess 
that possibly all non-alpha numerics are removed.

I guess the only ways to correct the sort order for a dotted numerical index 
would be to comment out that code, or change the API to accept a non-removal 
parameter, or implement a custom sort routine.

The first may have side effects.  The third seems a case of reinventing the 
wheel.  

The second is the most preferable but would involve us becoming an enterprise 
customer unless such a parameter already exists.  Enterprise is a possibility 
for the future but will have to wait as we are just starting to investigate the 
possibilities with Alfresco.

In the meantime, we'll have to make do with the less clear (no indents) 
numbering scheme of:
1.0 parent folder
1.1 child folder 1
1.2 child folder 2

I may do some digging and see if I can find the API to check what the 
possibilities are.

Original comment by mu...@dsty.ac.jp on 11 Feb 2012 at 1:31