Fixing sort issue on characteristics