diff --git a/tools/tools.go b/tools/tools.go index 8aadd9c..72f843d 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -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)