Is there a way to order document by type

I want to sort my documents by type. For example: folder 1,folder 2,folder 3,….,folder n,document 1,document 2,document 3,……document n I have a query like this : this.nuxeoClient.repository().query("SELECT * FROM Document WHERE ecm:parentId= ?", pageSize,currentPage,"0",sortBy,sortOrder,parentId);

1 votes

1 answers

548 views

ANSWER



Order by ecm:primaryType should work

2 votes



Thank you, it works!
02/15/2019