Forums / Install & configuration / Default sort order: Class identifier -> Why that?

Default sort order: Class identifier -> Why that?

Author Message

Marco Zinn

Wednesday 15 August 2007 12:06:47 pm

Hi,

i saw in a 3.9.2 install (out of the box, webmin design), that the default sort order of i.e the "article (main page)" class seems to be based on the "class identifier", which i find very useless.
More than that, i will mostly result in an undefined order of the children (when all are of the same class) AND creates problems in navigation (main / sub pages of articles or galleries / images).
When i view the class in admin, i see, that the default children sort order should be "path / ascending"... but the actual object seems to have another order. The object was created on the user siteaccess with the editor toolbar.

I guess, it's a bug when creating a an object from the user site.
Can somebody please comment on this?

Also, can somebody point me to the docs on the sort orders? I mean: what will sorting the children by "path" do? Isn't it the same as sorting by 'name'?

Marco
http://www.hyperroad-design.com

Björn Dieding@xrow.de

Wednesday 15 August 2007 7:07:54 pm

Without knowing i would take a guess:

name is related to contentobject.name
path to contentobject_tree.path_identification_string

I would expect that the result would highly differ, if you would get all children by mainnode only and if children would have multiple nodes per contect. Other then that it is more or less the same.

[the guess]

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

André R.

Thursday 16 August 2007 5:52:53 am

This should be reported as a bug, default sorting for most classes should be published descending, and classes like frontpage should use priority descending imho..

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Marco Zinn

Thursday 16 August 2007 9:15:31 am

Can somebody please try and confirm (or deny) this with a new (unaltered) 3.9.2 installation?
I'll file a bug report then.

@Björn: Yes, i thought of something like that, too. But -with standard templates- it does not make sense to me at all. Well... sorting by Class identifier or name does not make (much) sense to me either ;)

Marco
http://www.hyperroad-design.com

Łukasz Serwatka

Thursday 16 August 2007 2:33:36 pm

This problem is in eZ Publish for sometime. Default sorting should be as AR suggested, for most classes based on publication date. Sorting by content class ID is handy in admin interface where on subtree/folder contains lots of objects different classes.

Default sorting should be changed. Feel free to fill up bug report about it.

Reg. to "article (main page)", this class uses sorting by "priority" and editor need to take care about it. As front end editing interface is limited this must be set in admin interface. Of course ideally would be have that sorting pre-configured by default.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog