apply_row_masks()
doesn't respect descending sorting of row break variables
#50
Labels
bug
Something isn't working
Prerequisites
For more information, see the
CONTRIBUTING
guide.Description
apply_row_masks()
is intended to be used post-sorting, as it blanks row labels out assuming that the repetitive values are already next to each other. Currently, if using additional break variables to insert row breaks, this fails to consider if one of the break variables has been sorted in descending order, leading to an unexpected result.Steps to Reproduce (Bug Report Only)
Expected behavior: [What you expected to happen]
CONGENITAL, FAMILIAL AND GENETIC DISORDERS should sort first, and IMMUNE SYSTEM DISORDERS should sort second.
Actual behavior: [What actually happened]
IMMUNE SYSTEM DISORDERS sorts first and CONGENITAL, FAMILIAL AND GENETIC DISORDERS sorts second. Ascending sorting is reimplemented for ord_layer_1.
** Workaround **
The desired sort order can be achieved by re-sorting the data with the newly added ord_break variable.
This is far from desirable, but it works.
The text was updated successfully, but these errors were encountered: