fixed resultset output order