diff options
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/helpers/filters_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/filters_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/filters_helper.rb index 65e19f9fa90..fa887b9c5c1 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/filters_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/filters_helper.rb @@ -92,6 +92,14 @@ module FiltersHelper #----- SORTING DIRECTION + if filter_context.ascending_sort.nil? + java_filter.setAscendingSort(filter.sorted_column.ascending?) + else + filter.sorted_column.ascending=filter_context.ascending_sort + java_filter.setAscendingSort(filter.sorted_column.ascending?) + end + + if filter_context.ascending_sort filter.sorted_column.ascending=filter_context.ascending_sort end |