implements setcolorder

change code, test and documentation