switch qs order