bug fix: descending order should now only be used for output