I Keep running into the issue of the weights not being picked up properly by a view. I've fixed the problem once by not using negative weight values but then, some time later, the new order seemed to stop working too.
Has anyone else had any similar problems?

Comments

davisben’s picture

Status: Active » Postponed (maintainer needs more info)

I haven't run into any issues with negative weights. Could you provide a bit more info about whats happening/not happening.

_paul_meta’s picture

Confirming this issue for me too.

I have weight as a field in a view. I can drag the nodes around then save. Correct weight values are stored. But when trying to sort by those weight values it doesn't work, the order is kinda random. This occurs when weight is used as the first sort criteria in a view, both exposed and non-exposed sort mode.

Any help appreciated !

davisben’s picture

Status: Postponed (maintainer needs more info) » Active

I was able to reproduce this when nodes that had not had a weight set were included in the view. If you add the Weight value field to the view these should show 0 as the weight. Is this what is happening for you?

davisben’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Status: Active » Fixed

I added an update hook to make sure all nodes of enabled types have a weight.

Status: Fixed » Closed (fixed)

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