Added sort by hue functionality