cancel
Showing results for 
Search instead for 
Did you mean: 

document list order by custom property

cristianfrog
Champ in-the-making
Champ in-the-making
Hi all, like subject says… I've added my custom aspect with its property, now I want to order all the documents and folders by it.

I need to add it in the dropdown menu under all other sort-fields, is it possible?

See the image above:

[img]http://s15.postimg.org/y13x2eewr/custom_order.png[/img]

All my documents have property "Numero ordine" which I will like to add to the sort fields we see on top…

Hope in some help, Cristian.
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
Try this in share-config-custom.xml



   <config evaluator="string-compare" condition="DocumentLibrary">
  <sorting>
<sort label=""Numero ordine"">Your "Numero ordine" property from model</sort>
<sort label="label.title">cm:title</sort>

  </sorting>
</config>

thanks, it works!

But is it possible to sort documents and folders togheter? Because Share puts folders on top and documents under them, I would like to order by my property number folders and documents together so it must be 0,1,2,3,4,5.
For now if folder has 5 the order is  5,0,1,2,3,4 Smiley Sad

Nothing on this? Nobody knows a solution on mixing folders with documents?