Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the core book module books with the same weight are ordered alphabetically.
draggableviews_book only orders books by weight in _draggableviews_book_uasort() so the table of contents of a book is broken if one or more of the books have the same weight. It defaults to mlid instead of alphabetical order of the node title.
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff-1795024-3be04a-3.txt | 1.15 KB | iStryker |
#3 | draggableviews_book-fix_order-1795024-3.patch | 1.54 KB | iStryker |
#1 | draggableviews_book-fix_order-1795024-1.patch | 1011 bytes | acouch |
Comments
Comment #1
acouch CreditAttribution: acouch commentedAttached is a patch.
Comment #3
iStryker CreditAttribution: iStryker commentedCommitted too soon. I tested it, thought it work, then realized that it did not. Patch #1 sorts the first depth perfectly, however if there is more than one depth it does not. The reason is because if the weights do not match, then it checked the next the next depth. You cannot check the title unless you know there are no more depths to check.
Comment #4
iStryker CreditAttribution: iStryker commentedHere is the diff from last dev commit and patch 3.
Comment #6
iStryker CreditAttribution: iStryker commented