add sort questions by page in export method
This commit is contained in:
parent
a441303acb
commit
d645d50f6c
@ -14,6 +14,10 @@ func WriteDataToExcel(buffer io.Writer, questions []model.Question, answers []mo
|
||||
return err
|
||||
}
|
||||
|
||||
sort.Slice(questions, func(i, j int) bool {
|
||||
return questions[i].Page > questions[j].Page
|
||||
})
|
||||
|
||||
headers := []string{"Данные респондента"}
|
||||
mapQueRes := make(map[uint64]string)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user