Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sorting Firebase排序不工作_Sorting_Firebase_Firebase Realtime Database - Fatal编程技术网

Sorting Firebase排序不工作

Sorting Firebase排序不工作,sorting,firebase,firebase-realtime-database,Sorting,Firebase,Firebase Realtime Database,我遗漏了一些东西,或者Fireabase根本没有分类 高度未排序,正在返回[44,…,0.6,…,3]请求将结果作为JSON对象返回,并且无法表示排序,因此,orderBy参数不能用于排序结果 orderBy参数应与过滤参数一起使用,如equalTo 另请参见。请求将结果作为JSON对象返回,并且无法表示排序,因此,orderBy参数不能用于对结果排序 orderBy参数应与过滤参数一起使用,如equalTo 另请参见。正确!例如:正确!例如: { "bruhathkayosaur

我遗漏了一些东西,或者Fireabase根本没有分类


高度未排序,正在返回[44,…,0.6,…,3]

请求将结果作为JSON对象返回,并且无法表示排序,因此,
orderBy
参数不能用于排序结果

orderBy
参数应与过滤参数一起使用,如
equalTo


另请参见。

请求将结果作为JSON对象返回,并且无法表示排序,因此,
orderBy
参数不能用于对结果排序

orderBy
参数应与过滤参数一起使用,如
equalTo

另请参见。

正确!例如:正确!例如:
{    
  "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
  }
}