rapid7/metasploit-framework — pull request #2339 by mwulftange (2013-09-09 18:19:53+00:00)
Title: Disable default sorting on MSSQL results

When printing output using the `mssql_print_reply`, the output gets sorted by default by the first column. This can distort the output, especially when the row order is crucial like in case of executing external commands with `mssql_xpcmdshell`.

This patch disables sorting by initializing Rex::Ui::Text::Table with SortIndex = -1.