order by in document helper

Novice User asked on November 30, 2017 00:32

How can i manage to order the document via document helper dynamically. Whats the word should be in plac of (??) when a user want to show documents in order they exists in the tree structure?

DocumentHelper.GetDocuments("my.pagetype").OrderByAscending(??)

Correct Answer

Juraj Ondrus answered on November 30, 2017 15:14

Hi,
You need to use these three columns described in this thread.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Vukasin Andjelic answered on November 30, 2017 08:57 (last edited on November 30, 2017 08:58)

Hi,

DocumentHelper.GetDocuments("my.pagetype").OrderByAscending("NodeOrder")

3 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.