Back
Close

Sorting

Statement

 Goal

You must sort all characters by ASCII value in each word in message
Input
message
Output
sorted_message
Constraints
1 < Length of message by words < 250
5 < Length of message < 700
Example
Input
hello world
Output
ehllo dlorw

Game modes
Fastest, Shortest, Reverse

Test cases
2 words Test
Input
hello world
Output
ehllo dlorw

Validator 1 Validator
Input
hello orld
Output
ehllo dlor

3 words Test
Input
what is up?
Output
ahtw is ?pu

Validator 2 Validator
Input
what is u?
Output
ahtw is ?u

5 words Test
Input
Hello! I am Rick John
Output
!Hello I am Rcik Jhno

Validator 3 Validator
Input
Hello! I am Rick ohn
Output
!Hello I am Rcik hno

10 words Test
Input
if i told you the solution what would you do?
Output
fi i dlot ouy eht ilnoostu ahtw dlouw ouy ?do

Validator 4 Validator
Input
if i told you the solution what would you do
Output
fi i dlot ouy eht ilnoostu ahtw dlouw ouy do

15 words Test
Input
top 10 in global: dbdr, eulerscheZahl, _royale, trictrac, wala, neumann, jolindien, marchete, antisquid, magus
Output
opt 01 in :abgllo ,bddr ,Zaceeehhllrsu ,_aelory ,accirrtt ,aalw ,aemnnnu ,deiijlnno ,aceehmrt ,adiinqstu agmsu

Validator 5 Validator
Input
top 10 in global: dbdr, eulerscheZahl, _royale, trictrac, wala, neumann, jolindien, marchete, antisquid, maus
Output
opt 01 in :abgllo ,bddr ,Zaceeehhllrsu ,_aelory ,accirrtt ,aalw ,aemnnnu ,deiijlnno ,aceehmrt ,adiinqstu amsu

20 words Test
Input
Alan Mathison Turing OBE FRS was an English mathematician, computer scientist, logician, cryptanalyst, philosopher, and theoretical biologist.
Output
Aaln Mahinost Tginru BEO FRS asw an Eghilns ,aaacehiimmntt cemoprtu ,ceiinsstt ,acgiilno ,aaclnprsttyy ,ehhiloopprs adn aceehilortt .bgiiloost

Validator 6 Validator
Input
Alan Mathison Turing OBE FRS was an English mathematician, computer scientist, logician, cryptanalyst philosopher, and theoretical biologist.
Output
Aaln Mahinost Tginru BEO FRS asw an Eghilns ,aaacehiimmntt cemoprtu ,ceiinsstt ,acgiilno aaclnprsttyy ,ehhiloopprs adn aceehilortt .bgiiloost

50 words Test
Input
John von Neumann was a Hungarian-American mathematician, physicist, computer scientist, engineer and polymath. Von Neumann was generally regarded as the foremost mathematician of his time and said to be "the last representative of the great mathematicians". He integrated pure and applied sciences. i just need eight more words ! !
Output
Jhno nov Naemnnu asw a -AHaaacegiimnnnrru ,aaacehiimmntt ,chiipssty cemoprtu ,ceiinsstt eeeginnr adn .ahlmopty Vno Naemnnu asw aeegllnry addeegrr as eht efmoorst aaacehiimmntt fo his eimt adn adis ot be "eht alst aeeeeinprrsttv fo eht aegrt ".aaacehiimmnstt He adeeginrtt epru adn adeilpp .cceeinss i jstu deen eghit emor dorsw ! !

Validator 7 Validator
Input
John von Neumann was a Hungarian-American mathematician, physicist, computer scientist, engineer and polymath. Von Neumann was generally regarded as the foremost mathematician of his time and said to be "the last representative of the great mathematicians". He integrated pur and applied sciences. i just need eight more words ! !
Output
Jhno nov Naemnnu asw a -AHaaacegiimnnnrru ,aaacehiimmntt ,chiipssty cemoprtu ,ceiinsstt eeeginnr adn .ahlmopty Vno Naemnnu asw aeegllnry addeegrr as eht efmoorst aaacehiimmntt fo his eimt adn adis ot be "eht alst aeeeeinprrsttv fo eht aegrt ".aaacehiimmnstt He adeeginrtt pru adn adeilpp .cceeinss i jstu deen eghit emor dorsw ! !

100 words Test
Input
In the years from 1810, increasingly less socially involved, Beethoven composed many of his most admired works including his later symphonies and his mature chamber music and piano sonatas. His only opera, Fidelio, which had been first performed in 1805, was revised to its final version in 1814. He composed his Missa Solemnis in the years 1819-1823, and his final, Ninth, Symphony, one of the first examples of a choral symphony, from 1822-1824. Written in his last years, his late string quartets of 1825-1826 are amongst his final achievements. After some months of bedridden illness, he died in 1827. Beethoven's
Output
In eht aersy fmor ,0118 acegiilnnrsy elss acillosy ,deilnovv Beeehnotv cdemoops amny fo his most addeimr korsw cdgiilnnu his aelrt ehimnopssy adn his aemrtu abcehmr cimsu adn ainop .aanosst His lnoy ,aeopr ,Fdeiilo chhiw adh been first deefmoprr in ,0158 asw deeirsv ot ist afiln einorsv in .1148 He cdemoops his Maiss Seilmnos in eht aersy ,-11123889 adn his ,afiln ,Nhint ,Shmnopyy eno fo eht first aeelmpsx fo a achlor ,hmnopsyy fmor -.11222488 Weinrtt in his alst ,aersy his aelt ginrst aeqrsttu fo -11225688 aer agmnost his afiln .aceeehimnstv Aefrt emos hmnost fo bdddeeinr ,eillnss eh ddei in .1278 'Beeehnostv

Validator 8 Validator
Input
In the years from 1810, increasingly less socially involved, Beethoven composed many of his most admired works including his later symphonies and his mature chamber music and piano sonatas. His only opera, Fidelio, which had been first performed in 1805, was revised to its final version in 1814. He composed his Missa Solemnis in the years 1819-1823, and his final, Ninth, Symphony, one of the first examples of a choral symphony, from 1822-1824. Written in his last years, his late string quartets of 1825-1826 are amongst his final achievements. After some months of bedridden illness, he dead in 1827. Beethoven's
Output
In eht aersy fmor ,0118 acegiilnnrsy elss acillosy ,deilnovv Beeehnotv cdemoops amny fo his most addeimr korsw cdgiilnnu his aelrt ehimnopssy adn his aemrtu abcehmr cimsu adn ainop .aanosst His lnoy ,aeopr ,Fdeiilo chhiw adh been first deefmoprr in ,0158 asw deeirsv ot ist afiln einorsv in .1148 He cdemoops his Maiss Seilmnos in eht aersy ,-11123889 adn his ,afiln ,Nhint ,Shmnopyy eno fo eht first aeelmpsx fo a achlor ,hmnopsyy fmor -.11222488 Weinrtt in his alst ,aersy his aelt ginrst aeqrsttu fo -11225688 aer agmnost his afiln .aceeehimnstv Aefrt emos hmnost fo bdddeeinr ,eillnss eh adde in .1278 'Beeehnostv

Only numbers Test
Input
101 0239 8325479 019237 2247432589237
Output
011 0239 2345789 012379 2222334457789

Validator 9 Validator
Input
101 0239 8325479 019237 224743258923
Output
011 0239 2345789 012379 222233445789

Only special characters Test
Input
!@#$%^ &*()
Output
!#$%@^ &()*

Validator 10 Validator
Input
!@#$%^ &*(
Output
!#$%@^ &(*

Solution language

Solution

Stub generator input