added color sorting