sorting q and as on form