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.

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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | proper_sort_equal_weight-3207321-2.patch | 1.3 KB | kpaxman |
| lbb_bad_sorting_example.png | 16.01 KB | kpaxman |
Comments
Comment #2
kpaxman commentedPatch attached for review.
Comment #3
strykaizer