From 9fe42e449b44e10cb1ab46ed10498fe5a5d3dce0 Mon Sep 17 00:00:00 2001 From: Pavel Date: Tue, 16 Apr 2024 13:56:43 +0300 Subject: [PATCH] fix sort slice question in export method --- tools/tools.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tools.go b/tools/tools.go index ba83afb..61e01d0 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -37,7 +37,7 @@ func WriteDataToExcel(buffer io.Writer, questions []model.Question, answers []mo } sort.Slice(questions, func(i, j int) bool { - return questions[i].Page > questions[j].Page + return questions[i].Page < questions[j].Page }) headers := []string{"Данные респондента"}