Sorting point cloud by its RGB colour range in grasshopper

I wrote this little ditty five years ago, don’t know if it’s relevant?

If you have data, you’ll get better results by posting it.

One more: