Strange behavior of previous and next document button

The previous and next document buttons have strange behavior, e.g, if we sort the leads list according to the status field then the next button in the leads form will jump to the first lead in the next status item skipping all leads with the same status. The same occur if the field used for sorting have equal values like items with the same price.

Having this same issue. Did you find any solution?

Sorry for my late reply.
It is due to the sorting code it uses > and < instead of >= and <= to move between previous/next so if you sort the list on a field that can have multiple equal values like “item price” or “quantity” clicking next will jump to the item with a price > current price skipping all items with the same price
I have tried to modify the code but it seems to have multiple side effects and a more experienced person should do it.