
For columns that do not present a clear ordering, sorting will be done
alphabetically. This applies to
category
, and text
.If you have a categorical variable that has a clear ordering but it doesn’t
sort properly, check how to convert it to an ordinal variable by
specifying the ordering in categorical
variables.Examples of this kind of variables are shirt sizes, where “S” is smaller than “M”, which is smaller than “L”, or
survey answers like “Disagree” which is smaller than “Don’t Mind/Don’t Know”, which is smaller than
“Agree”.