diff --git a/apps/files/index.php b/apps/files/index.php index e24c535cb208cab1488194ddadc29bb5e444b970..95ae7977eccf1ff125a5b56b430d468c6134a3b6 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -74,7 +74,12 @@ if (OC_App::isEnabled('files_encryption')) { $nav = new OCP\Template('files', 'appnavigation', ''); +function sortNavigationItems($item1, $item2) { + return $item1['order'] - $item2['order']; +} + $navItems = \OCA\Files\App::getNavigationManager()->getAll(); +usort($navItems, 'sortNavigationItems'); $nav->assign('navigationItems', $navItems); $contentItems = array(); diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index 1756fc2f50eac20392ac696f389e1742951a54e5..21b2646c5eade7a57cde704acf06e6cc346c08a9 100644 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -28,7 +28,7 @@ OC_FileProxy::register(new OCA\Files\Share\Proxy()); "id" => 'sharingin', "appname" => 'files_sharing', "script" => 'list.php', - "order" => 3, + "order" => 10, "name" => $l->t('Shared with you') ) ); @@ -37,7 +37,7 @@ OC_FileProxy::register(new OCA\Files\Share\Proxy()); "id" => 'sharingout', "appname" => 'files_sharing', "script" => 'list.php', - "order" => 4, + "order" => 15, "name" => $l->t('Shared with others') ) ); diff --git a/apps/files_trashbin/appinfo/app.php b/apps/files_trashbin/appinfo/app.php index b8900ee0de3a48cb781ae5dd4e630dcb57f04316..383115b8e634d241c2f9e8db8928eb03c0ca913d 100644 --- a/apps/files_trashbin/appinfo/app.php +++ b/apps/files_trashbin/appinfo/app.php @@ -9,7 +9,7 @@ array( "id" => 'trashbin', "appname" => 'files_trashbin', "script" => 'list.php', - "order" => 1, + "order" => 50, "name" => $l->t('Deleted files') ) );