This is my take on it. Rather than use a conventional sort, as there are only 4 values, I find the min and max using the Picaxe functions, pass through looking for where they are, pack the remaining ones (leaving two) and then do another MIN/MAX to get the order.
symbol value = 100
w10 = 6542...