hey,
if i try to change the DraggableViews:order sort to desc instead of asc order i get the following validation error -

Draggableviews: You must sort by Order ascending to display the structure correctly.

Is it possible to turn the list upside down so it is sorted by desc order, or is this by design?

I also found that if you checked the radio that you wanted new nodes to appear at the bottom of the table this setting was not respected. It always seems to add them into the top row.

CommentFileSizeAuthor
#1 draggableviews-546142.patch3.94 KBsevi

Comments

sevi’s picture

StatusFileSize
new3.94 KB

I also found that if you checked the radio that you wanted new nodes to appear at the bottom of the table this setting was not respected. It always seems to add them into the top row.

The problem was that $view->total_rows will not always be calculated (if paging is not used).
The attached patch makes it work even if paging is not used.

Is it possible to turn the list upside down so it is sorted by desc order, or is this by design?

No, it's not possible. Why would you ever want to do this? The order values should not be interesting for the user.
Nevertheless there's an easy way to sort the view upside down:
Add the order field a second time (only for display) and activate "click sort" for this field by clicking the checkbox "sortable" at the style-plugin settings. Now you can sort by this field in descending order. (at the view output).

Greetings,
sevi

sevi’s picture

Status: Active » Needs review
sevi’s picture

Status: Needs review » Fixed

Since the code changed very much in the meanwhile I'll close this issue now.
Reopen a new issue if needed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.