diff --git a/internal/utils/sorting.go b/internal/utils/sorting.go index aa2bfcf..72c5850 100644 --- a/internal/utils/sorting.go +++ b/internal/utils/sorting.go @@ -12,8 +12,8 @@ import ( // SortByOrder Order items by specified field and a sort type // Example: SortByOrder(map[string]string{"name": "ASC"}, &models.Post{}) -// ASC - по возрастанию (от А до Я) -// DESC - по убыванию (от Я до А) +// ASC - по возрастанию (или от А до Я) +// DESC - по убыванию (или от Я до А) func SortByOrder[T any](fieldsSortOrder map[string]string, entity T) ([]*T, error) { var ( orderQuery []string diff --git a/main.go b/main.go index 40dd703..b0dbe90 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,7 @@ func main() { app := application.New(application.Options{ Name: "nto_starterkit", Description: "Toolkit template", - Services: append([]application.Service{services.MigratorService}, services.ExportedServices...), + Services: append(services.ExportedServices, services.MigratorService, services.ExcelService), Assets: application.AssetOptions{ Handler: application.AssetFileServerFS(assets), },