sort first on the number of digits, then on the first digit.
923 > 91 > 9
(923 > 762 > 421) > (91 > 63 > 12) > (9 > 3)
Having a problem writing an expanded number in notation in descending order.
Ex. 92,563,174.
I know the placements and the number but have a problem when it comes to write it. Can you please help. I would appreciate an example so much.
3 answers
Thank you Steve.
Actually, you need to sort on the length first, then on all the digits in order, so to expand the example a bit,
(923>921>919>913 > 762 > 421>413>409) > (91>90 > 63>61 > 12>10) > (9 > 3)
(923>921>919>913 > 762 > 421>413>409) > (91>90 > 63>61 > 12>10) > (9 > 3)