A plugin to sort colors by their hue color. It will then align them in a grid by 10 columns with a 40px gap. Simply select your objects that you want to sort and then run the plugin.
This plugin uses color-sorter (https://github.com/bartveneman/color-sorter) which sorts colors by hue, then saturation. Black-grey-white colors (colors with 0% saturation) are shifted to the end. Fully transparent colors are placed at the very end.