From 341124e5b062dc535f676058b31b7acbae26031b Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Wed, 15 Dec 2021 09:47:34 +0800 Subject: [PATCH] sort to easy reading config in shell --- platform/Replit.php | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/Replit.php b/platform/Replit.php index a7b0601..ebc5acd 100644 --- a/platform/Replit.php +++ b/platform/Replit.php @@ -158,6 +158,7 @@ function setConfig($arr, $disktag = '') } } $envs = array_filter($envs, 'array_value_isnot_null'); + sortConfig($envs); $response = ReplitAPI('w', 'REPLIT_CONFIG', json_encode($envs)); //error_log1(json_encode($arr, JSON_PRETTY_PRINT) . ' => tmp:' . json_encode($envs, JSON_PRETTY_PRINT)); savecache('REPLIT_CONFIG', null, '', 0);