gitlab.com/evatix-go/core@v1.3.55/coredata/coredynamic/MapKeysStringSliceAnySortedMust.go (about)

     1  package coredynamic
     2  
     3  import (
     4  	"reflect"
     5  	"sort"
     6  )
     7  
     8  func MapKeysStringSliceAnySortedMust(any interface{}) []string {
     9  	reflectVal := reflect.ValueOf(any)
    10  
    11  	keys := MapKeysStringSliceAnyMust(reflectVal)
    12  	sort.Strings(keys)
    13  
    14  	return keys
    15  }