Skip to content

Commit

Permalink
rearrange levels
Browse files Browse the repository at this point in the history
  • Loading branch information
emitanaka committed Dec 10, 2023
1 parent 7452859 commit 492b998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/fcts.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ set_fcts <- function(.edibble, ..., .class = NULL,
#' Constructor for an edibble variable
#' @importFrom vctrs new_vctr
#' @noRd
new_edibble_fct <- function(labels = character(), levels = as.character(unique(labels)),
new_edibble_fct <- function(labels = character(), levels = sort(as.character(unique(labels))),
name = character(), rep = NULL, ..., class = NULL) {
# don't make the attribute name
# as this triggers the warning message in ggplot2:
Expand Down

0 comments on commit 492b998

Please sign in to comment.