Token sort