added order, made sort and order space separated string of values