fix sort slice question in export method
This commit is contained in:
parent
ba856db178
commit
9fe42e449b
@ -37,7 +37,7 @@ func WriteDataToExcel(buffer io.Writer, questions []model.Question, answers []mo
|
|||||||
}
|
}
|
||||||
|
|
||||||
sort.Slice(questions, func(i, j int) bool {
|
sort.Slice(questions, func(i, j int) bool {
|
||||||
return questions[i].Page > questions[j].Page
|
return questions[i].Page < questions[j].Page
|
||||||
})
|
})
|
||||||
|
|
||||||
headers := []string{"Данные респондента"}
|
headers := []string{"Данные респондента"}
|
||||||
|
Loading…
Reference in New Issue
Block a user