]> git.mxchange.org Git - friendica.git/commitdiff
Order of filed items in saved folders seems to be random
authorMichael <heluecht@pirati.ca>
Sat, 9 May 2020 18:47:56 +0000 (18:47 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 9 May 2020 18:47:56 +0000 (18:47 +0000)
Fixes #8614

mod/network.php

index b6afda608b0aa1873d331bac6e370744db9c1a36..1506c707377fa196842c007aa462779a5ffe2741 100644 (file)
@@ -383,7 +383,7 @@ function networkFlatView(App $a, $update = 0)
        if (strlen($file)) {
                $item_params = ['order' => ['uri-id' => true]];
                $term_condition = ['name' => $file, 'type' => Category::FILE, 'uid' => local_user()];
-               $term_params = ['order' => ['tid' => true], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
+               $term_params = ['order' => ['uri-id' => true], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
                $result = DBA::select('category-view', ['uri-id'], $term_condition, $term_params);
 
                $posts = [];