How to give proper order in xaxis during boxplot?

How to arrange it as P9, P10 and P11?

Can you give a complete example? (In particular it’s not clear which plotting package you’re using).

In this example I will expect it to be P13, P12, P11, P10 but its giving P10, P11, P12, P13

using StatsPlots, DataFrames

x = repeat(["P13", "P12", "P11", "P10"], inner = 4, outer = 3)
y = [1,2,3,4,5,6,7,8,9,10,10,2,12,4,1,2,1,2,3,4,5,6,7,8,9,10,10,2,12,4,1,2, 1,2,3,4,5,6,7,8,9,10,10,2,12,4,1,2]
df = DataFrame(x=x, y=y)
@df df boxplot(:x, :y)

Isn’t there any internal attribute for same?