From 77ab7cad406618ef5f6d9ebf11e584a5f9158230 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Wed, 3 Apr 2019 17:45:56 +0200 Subject: [PATCH] Visual Console Refactor: improved the sorting of the the model's data Former-commit-id: 3f5fb074fa0839cc207605f92b54cd2af9d16a8a --- pandora_console/include/rest-api/models/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/rest-api/models/Model.php b/pandora_console/include/rest-api/models/Model.php index 802a22b975..968ed496e6 100644 --- a/pandora_console/include/rest-api/models/Model.php +++ b/pandora_console/include/rest-api/models/Model.php @@ -58,7 +58,7 @@ abstract class Model $this->validateData($unknownData); $this->data = $this->decode($unknownData); // Sort alphabetically. - ksort($this->data); + ksort($this->data, (SORT_NATURAL | SORT_FLAG_CASE)); }