Documentation ¶
Overview ¶
字符串和数字排序 1.如果能转成数字, 则转成数字比较;2.数字排在字符串前;3.升序排列
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringNums ¶
func StringNums(a []*Element)
Types ¶
type ElementSlice ¶
type ElementSlice []*Element
func (ElementSlice) Len ¶
func (this ElementSlice) Len() int
func (ElementSlice) Less ¶
func (this ElementSlice) Less(i, j int) bool
func (ElementSlice) Swap ¶
func (this ElementSlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.