Problem/Motivation

For things we want alphabetically sorted, we commonly set the weight of everything to the same value. Normally, all items of equal weight sort alphabetically by name, and doing this lets us add new items without having to renumber all the weights, and new items just automatically sort alphabetically.

In LBB, items of equal weight do not automatically sort alphabetically. The attached image shows this in the admin interface; the same ordering is happening on the layout builder page, as well. You can see that "Profile list (manual)" is first in the list of things with weight set to 0, despite the fact that alphabetical order should place it last.

example of incorrect sorting

Steps to reproduce

Create items of equal weight, but not in alphabetical order. (I *think* that you should be able to do this by creating them out of order. I'm not sure what we had to do to get there in our setup.)

Proposed resolution

Run the blocks through the same sorting function that the block categories are run through.

Remaining tasks

Create patch (incoming).

User interface changes

Items will now be sorted properly.

API changes

None.

Data model changes

None.

Comments

kpaxman created an issue. See original summary.

kpaxman’s picture

Status: Active » Needs review
StatusFileSize
new1.3 KB

Patch attached for review.

strykaizer’s picture

Status: Needs review » Fixed

  • StryKaizer committed 5b0c0a8 on 8.x-1.x authored by kpaxman
    Issue #3207321 by kpaxman: Blocks of equal weight should sort...

Status: Fixed » Closed (fixed)

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