I have the following Shiny code:
library(shiny)
my_choices <- c( "a", "b", "c", "d")
ui <- fluidPage(
selectInput(
"d", "My Test", choices = my_choices, selected = c("c","a"), multiple = TRUE
)
)
server <- function(input, output) {}
shinyApp(ui, server)
Note that in my code I specified that the selected input should be in the order of c("c", "a"). But the UI sort it as a -> c. How can I disable this auto-sorting in Shiny?
