Monday 20 January 2003 4:43:44 am
> > > > I have also patched the system (3 additional lines)
> to
> > > > enable to sort by object name. (See
> > > > http://developer.ez.no/bug/bugview/1773/ )
> > >
> > > The name sorting patch has been added to the source
> with
> > > some template additions for selecting it.
> >
> > Ok, but if I want sort or filter results by any
> attribute?
> > This is not implemented yet so you just have to wait ;) Or can't you do ugly (TM) things in combination with the name patch? Like using the name field for sorting but filling it with the value of any attribute? Put <attribute-identifier> in the field for the object class name should do the trick? It displays ugly, but may make sense if sorting on any attribute is required.
--------------------natsort anyone?---------------- However, the "order by" clause of Mysql (and others) is rather limited. Perhaps ezp should do a two-staged sorting with php natsort() as an option. This would get the right sorting order, for example:
fig1.png
fig3.png fig12.png instead of
fig1.png
fig12.png fig3.png Paul
eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans
|