Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/433.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
Javascript angularjs orderBy默认自动排序_Javascript_Angularjs - Fatal编程技术网

Javascript angularjs orderBy默认自动排序

Javascript angularjs orderBy默认自动排序,javascript,angularjs,Javascript,Angularjs,把它想象成一个有优先权的待办事项列表。在推送的中,我使用了orderBy:priority,它工作正常。但后来我发现从后端加载的数据打乱了它的顺序。就像我推 1 2 3 a 那么它可能会变成 a 1 2 3 angularjs是否自动排序列表?您不想排序,只想删除orderby筛选器。@ZaheerAhmed我想按组排序,但组中的项目已排序。能否显示todo对象的定义以及用于显示列表的html?

把它想象成一个有优先权的待办事项列表。在推送的
  • 中,我使用了
    orderBy:priority
    ,它工作正常。但后来我发现从后端加载的数据打乱了它的顺序。就像我推

    1
    2
    3
    a
    
    那么它可能会变成

    a
    1
    2
    3
    

    angularjs是否自动排序列表?

    您不想排序,只想删除orderby筛选器。@ZaheerAhmed我想按组排序,但组中的项目已排序。能否显示todo对象的定义以及用于显示列表的html?