Skip to main content
1 of 2
Blue
  • 28.8k
  • 8
  • 53
  • 101

##Pyke, 5 bytes

SD_]{ 

Try it here!

S - sorted(input) ] - [^, v] D - ^ _ - reverse(^) { - input in ^ 
Blue
  • 28.8k
  • 8
  • 53
  • 101