Sort hex colours