Firebase,Firego和订购

I'm trying to get a timestamp ordered list of elements out of Firebase, using Golang and Firego.

The documentation suggests:

var v map[string]interface{}
if err := f.StartAt("a").EndAt("c").LimitToFirst(8).OrderBy("field").Value(&v); err != nil {
    log.Fatal(err)
}
fmt.Printf("%s
", v)

I must be missing something completely obvious, but isn't v going to be unordered? When I loop through the map (for key, val := range v) the values won't be in the same order as they have been sent in the response of the call to Firebase, since the order of access is undefined.

What am I missing? Thanks

The map of results will be unordered since it is a map, but the original results (limited to top 8) will be ordered before the limit, so the order could be very important.

I agree a map is a bad type for results of this kind, they're probably using that because results come back as json (though that does have an order, unlike go's map). They should be returning an array of results to preserve order.