Query string stream sorting correction

The query string sorting expained at the streams->cp->entries_table()
were not working. The direction was always ASC. This fix corrects it.
Merge pull request #2938 from RodrigoBalest/2.2/develop

Query string stream sorting correction