firebase:我的恐龙不按高度排序

时间:2015-06-13 18:50:46

标签: firebase

使用Firebase REST界面尝试一些教程。教程说这应该按照高度对我的恐龙进行排序,但它们似乎仍然按键(名称)排序。看起来这个例子可能不是一个好的例子(因为我收到一本字典,不能进行排序)。

我误读了文档吗?如果它不起作用,为什么他们会以此为例?

$ curl 'https://dinosaur-facts.firebaseio.com?dinosaurs.json?orderBy="height"&print=pretty'
{
  "bruhathkayosaurus" : {
    "appeared" : -70000000,
    "height" : 25,
    "length" : 44,
    "order" : "saurischia",
    "vanished" : -70000000,
    "weight" : 135000
  },
  "lambeosaurus" : {
    "appeared" : -76000000,
    "height" : 2.1,
    "length" : 12.5,
    "order" : "ornithischia",
    "vanished" : -75000000,
    "weight" : 5000
  },
  "linhenykus" : {
    "appeared" : -85000000,
    "height" : 0.6,
    "length" : 1,
    "order" : "theropoda",
    "vanished" : -75000000,
    "weight" : 3
  },
  "pterodactyl" : {
    "appeared" : -150000000,
    "height" : 0.6,
    "length" : 0.8,
    "order" : "pterosauria",
    "vanished" : -148500000,
    "weight" : 2
  },
  "stegosaurus" : {
    "appeared" : -155000000,
    "height" : 4,
    "length" : 9,
    "order" : "ornithischia",
    "vanished" : -150000000,
    "weight" : 2500
  },
  "triceratops" : {
    "appeared" : -68000000,
    "height" : 3,
    "length" : 8,
    "order" : "ornithischia",
    "vanished" : -66000000,
    "weight" : 11000
  }
}

0 个答案:

没有答案