To fill each compartment, stack all of the same value in order by decade. So 1/10/100/1K/10K/etc all go in one stack and into the first compartment. Next is 1.2/12/120/etc. Now it's easy to find any value, just look up the number, pull out the stack, and find the right decade.