Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mod_survey: Use lowercase when sorting printable list

  • Loading branch information...
commit 9062cbc90f5c0312525842849edf3f34ac8affcf 1 parent be07208
@arjan arjan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  modules/mod_survey/models/m_survey.erl
View
2  modules/mod_survey/models/m_survey.erl
@@ -240,7 +240,7 @@ survey_results_sorted(SurveyId, SortColumn, Context) ->
[Headers|Data];
N ->
%% Sort on nth row
- Data1 = [{lists:nth(N, Row), Row} || Row <- Data],
+ Data1 = [{z_string:to_lower(z_convert:to_list(lists:nth(N, Row))), Row} || Row <- Data],
Data2 = [Row1 || {_, Row1} <- lists:sort(Data1)],
[Headers|Data2]
end.
Please sign in to comment.
Something went wrong with that request. Please try again.