agea / Alfresco-HTML5-Client

Pure HTML5 and Javascript Alfresco client
MIT License
25 stars 10 forks source link

Sort the resulting objects #6

Closed ebogaard closed 11 years ago

ebogaard commented 11 years ago

Is there any way to sort the resulting objects? CMIS for example supports the likes of:

It would be nice to at least be able to add a pre-defined order.

ebogaard commented 11 years ago

Great implementation! Some other sorting options that might be relevant to add to /js/config.js are: ['cmis:creationdateDate', 'Creation Date'], ['cmis:lastModificationDate', 'Change Date'],

PS: Adding these options immediately make these available. Sorting is always 'asc', though. 'desc' doesn't seem to have an effect. Also, it seems that (with Alfresco 4.2c, at least) the lastModificationDate is the same as creationdateDate, though in the details screen, another date is shown if the respective fields.

agea commented 11 years ago

Yes I experienced some issues with these fields, so I left ehtm out for now