It would be great to have weight be available as a sort criteria in views.

CommentFileSizeAuthor
#3 Screenshot 2015-02-13 17.25.44.png9.38 KBbendean

Comments

quicksketch’s picture

Because weight.module uses the sticky column, you can just use Views' built in node filter for 'sticky'. Descending sort lists the items with the lowest weight I believe (backwards from what you'd expect).

harry slaughter’s picture

Status: Active » Closed (works as designed)

yes, use the 'sticky' flag for sorting. this will sort by sticky flag then weight.

bendean’s picture

Issue summary: View changes
StatusFileSize
new9.38 KB

This is no longer working for me.

I added Content: Sticky (desc) as the only sort criteria in a view and it's not causing the sort.

Is this still the correct way to sort views based on Weight?

RESOLVED: It wasn't 100% clear I needed to add both Sticky (desc) and Weight (asc) to sort.