[code] add hook to reverse post query order