R
rhitz1218
Hi,
I'm trying to create a function that will sort a number's digits
from highest to lowest.
For example
1000 - will become 0001
or 1234 to 4321
Is it better to covert the number to a string first then sort? or
is there a better way to do it?
I just need some clues on how to do it. I've tried to search some
materials on how to do it but I only saw how to sort a 'LIST' but not
just a number.
Thanks for the help
I'm trying to create a function that will sort a number's digits
from highest to lowest.
For example
1000 - will become 0001
or 1234 to 4321
Is it better to covert the number to a string first then sort? or
is there a better way to do it?
I just need some clues on how to do it. I've tried to search some
materials on how to do it but I only saw how to sort a 'LIST' but not
just a number.
Thanks for the help