Assuming your dataframe is mydf:
mydf$task <- factor(mydf$task, levels = c("up", "down", "left", "right", "front", "back"))
2.1m questions
2.1m answers
60 comments
57.0k users