Added sorting to arr in xmlprovider

This commit is contained in:
Simon Martens
2025-01-16 23:46:54 +01:00
parent ff310265e4
commit e8e8d9ae00
7 changed files with 53 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
package xmlprovider
import (
"log"
"strconv"
"strings"
)
@@ -47,7 +48,6 @@ func Sort[T XMLItem](i, j T) int {
}
int_b, err := strconv.Atoi(sort_b[i])
if err != nil {
if item < sort_b[i] {
return -1
}