func sweep(animals []Item) {
	N := len(animals)
	firstIndex := 0
	secondIndex := 1

	for secondIndex < N {
		firstVal := animals[firstIndex]
		secondVal := animals[secondIndex]

		var a string
		a = firstVal.getName()
		b := secondVal.getName()

		if greater(a, b) {
			animals[firstIndex] = secondVal
			animals[secondIndex] = firstVal
		}

		firstIndex++
		secondIndex++
	}
}
// This method orders in alphabetic order the array of Items
This method orders in alphabetic order the array of Items
// This method orders in alphabetic order the array of Items
func sweep(animals []Item) {
	N := len(animals)
	firstIndex := 0
	secondIndex := 1
	for secondIndex < N {
		firstVal := animals[firstIndex]
		secondVal := animals[secondIndex]
		var a string
		a = firstVal.getName()
		b := secondVal.getName()
		if greater(a, b) {
			animals[firstIndex] = secondVal
			animals[secondIndex] = firstVal
		}
		firstIndex++
		secondIndex++
	}
}
func sweep ( animals [ ] Item ) { N := len ( animals ) firstIndex := 0 secondIndex := 1 for secondIndex < N { firstVal := animals [ firstIndex ] secondVal := animals [ secondIndex ] var a string a = firstVal . getName ( ) b := secondVal . getName ( ) if greater ( a , b ) { animals [ firstIndex ] = secondVal animals [ secondIndex ] = firstVal } firstIndex ++ secondIndex ++ } }
This method orders in alphabetic order the array of Items
This method orders in alphabetic order the array of Items