How to create a line of wool sorted by color?

This is what I came up with:

enter image description here

And it looks pretty correct to me. Colors from left to right: white, light gray, gray, black, brown, red, orange, yellow, lime, green, cyan, light blue, blue, purple, magenta, pink

Here they are in a line (since you're limited to a 9-wide inventory space):

enter image description here