How to destroy tools and set them in a number order

I don’t know how to do this
Im imagining a table of the tool name like;

local table = {
Tool1 = plr.Tool1.Value, >Number1
Tool2 = plr.Tool2.Value, >Number2
}

if the value is changed that number of tool1 is 2 and tool2 is 1 then the arrangement changes in that order

I am not sure what you mean, but table.sort()?

does table.sort sort them out in numerical order?