package correct
import "sort"
func AdvancedSortWordArr(a []string, f func(a, b string) int) {
sort.Slice(a, func(i, j int) bool {
return f(a[i], a[j]) < 0
})
return a
}