Using markdown v2
This commit is contained in:
@@ -25,3 +25,9 @@ func ( busStop BusStop ) NextStop() *BusStop {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ByRouteId []BusStop
|
||||
|
||||
func (a ByRouteId) Len() int { return len(a) }
|
||||
func (a ByRouteId) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
|
||||
func (a ByRouteId) Less(i, j int) bool { return a[i].RouteId < a[j].RouteId }
|
||||
|
||||
Reference in New Issue
Block a user