Comparing and ordering numbers up to millions