Added sortvalues