Decode parsed result & improved sorting