logo
Search
showing results for - "sort number in descending order"
Charlotte
15 Mar 2016
1function solution(n) {
2    return parseInt(n.toString().split('').sort((val1,val2) => val2-val1).join(''));
3}
4
5
source
similar questions
javascript ascending and descendingjavascript sort numbers descendingsort descending arrayjs sort numbers descending order
queries leading to this page
how to return number in descending orderhow to get ascending order to descending ordersort numbers in descending orderwhat does descending order mean in numbersarrange the numbers in descending orderascending descending order examplesorting in descending orderdescending order number examplesort algorithm from ascending to descendingnumbers in descending ordersorting the numbe rin the descending orderdescending order numberssort function return 1 ascending order or descending orderis it ascending or descending in sortingdescending order in numbersnumbers descending orderalgorithm of sorting in ascending and descending orderascending order and descending order sortinghow to arrange a value of numbers in descending ordernumbers in descending order examplehow to make ascending order numbers to descending order numbersort number in descending order
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue