Sort an array of hex colors by HUE
npm install sort-colors-js
import sortColorsByHue from 'sort-colors-js'
const arrayColorsSorted = sortColorsByHue([
'#e6194b',
'#3cb44b',
'#ffe119',
'#4363d8',
'#f58231',
'#911eb4'
])