Skip to main content
Commonmark migration
Source Link

#Wolfram Language 255 213 199 bytes

Wolfram Language 255 213 199 bytes

Fourteen bytes saved by Dennis, who avoided the " marks, using symbols instead of strings.

SortBy[#,{yellow,green,brown,scarlet,black,ochre,peach,ruby,olive,violet,fawn,lilac,gold,chocolate,mauve,cream,crimson,silver,rose,azure,lemon,russet,grey,purple,white,pink,orange,blue}~Position~#&]&

Try It Online!

#Wolfram Language 255 213 199 bytes

Fourteen bytes saved by Dennis, who avoided the " marks, using symbols instead of strings.

SortBy[#,{yellow,green,brown,scarlet,black,ochre,peach,ruby,olive,violet,fawn,lilac,gold,chocolate,mauve,cream,crimson,silver,rose,azure,lemon,russet,grey,purple,white,pink,orange,blue}~Position~#&]&

Try It Online!

Wolfram Language 255 213 199 bytes

Fourteen bytes saved by Dennis, who avoided the " marks, using symbols instead of strings.

SortBy[#,{yellow,green,brown,scarlet,black,ochre,peach,ruby,olive,violet,fawn,lilac,gold,chocolate,mauve,cream,crimson,silver,rose,azure,lemon,russet,grey,purple,white,pink,orange,blue}~Position~#&]&

Try It Online!

added 39 characters in body
Source Link
DavidC
  • 25.4k
  • 2
  • 52
  • 105

#Wolfram Language 255 213 186199 bytes

There should be a way to efficiently compressFourteen bytes saved by Dennis, who avoided the list" marks, using symbols instead of colorsstrings.

SortBy[#,StringSplit@{"yellow yellow,green ,brown ,scarlet ,black ,ochre ,peach ,ruby ,olive ,violet ,fawn ,lilac ,gold ,chocolate ,mauve ,cream ,crimson ,silver ,rose ,azure ,lemon ,russet ,grey ,purple ,white ,pink ,orange blue",blue}~Position~#&]&

Try It Online!

#Wolfram Language 255 186 bytes

There should be a way to efficiently compress the list of colors.

SortBy[#,StringSplit@{"yellow green brown scarlet black ochre peach ruby olive violet fawn lilac gold chocolate mauve cream crimson silver rose azure lemon russet grey purple white pink orange blue"}~Position~#&]&

Try It Online!

#Wolfram Language 255 213 199 bytes

Fourteen bytes saved by Dennis, who avoided the " marks, using symbols instead of strings.

SortBy[#,{yellow,green,brown,scarlet,black,ochre,peach,ruby,olive,violet,fawn,lilac,gold,chocolate,mauve,cream,crimson,silver,rose,azure,lemon,russet,grey,purple,white,pink,orange,blue}~Position~#&]&

Try It Online!

added 475 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

#Wolfram Language 255 186 bytes

There should be a way to efficiently compress the list of colors.

SortBy[#,StringSplit@{"yellow green brown scarlet black ochre peach ruby olive violet fawn lilac gold chocolate mauve cream crimson silver rose azure lemon russet grey purple white pink orange blue"}~Position~#&]&

Try It Online!

#Wolfram Language 255 186 bytes

There should be a way to efficiently compress the list of colors.

SortBy[#,StringSplit@{"yellow green brown scarlet black ochre peach ruby olive violet fawn lilac gold chocolate mauve cream crimson silver rose azure lemon russet grey purple white pink orange blue"}~Position~#&]&

#Wolfram Language 255 186 bytes

There should be a way to efficiently compress the list of colors.

SortBy[#,StringSplit@{"yellow green brown scarlet black ochre peach ruby olive violet fawn lilac gold chocolate mauve cream crimson silver rose azure lemon russet grey purple white pink orange blue"}~Position~#&]&

Try It Online!

deleted 32 characters in body
Source Link
DavidC
  • 25.4k
  • 2
  • 52
  • 105
Loading
Source Link
DavidC
  • 25.4k
  • 2
  • 52
  • 105
Loading