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.