mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 09:05:30 +00:00
Added sorting to arr in xmlprovider
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user