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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

acouch’s picture

Status: Active » Needs review
FileSize
1011 bytes

Attached is a patch.

  • iStryker committed 6b4e56c on 7.x-2.x authored by acouch
    Issue #1795024 by acouch: Book order does not use alphabetical for books...
iStryker’s picture

Committed 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.

iStryker’s picture

Here is the diff from last dev commit and patch 3.

  • iStryker committed 3e529fb on 7.x-2.x
    Fix last commit. Issue #1795024 by iStryker: Book order does not use...
iStryker’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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