This is a Sketch Plugin that sorts layers by the hue value of their background fill color. It’s a nice example of a Twitter request inspiring a plugin developer: