Dropped the sections sorting

This commit is contained in:
Vladimir Borisov 2019-09-30 10:52:16 +03:00
parent 2c61153294
commit 56fd4e1a78
No known key found for this signature in database
GPG key ID: F9A584BE4FCB6603

View file

@ -30,14 +30,6 @@ const settingsValues = {
const Settings = () => {
const sections = Object.keys(settingsSections)
.sort(function(a, b) {
const valueA = SECTIONS_ORDER[a];
const valueB = SECTIONS_ORDER[b];
if (!isNaN(valueA) && !isNaN(valueB)) return valueA - valueB;
if (!isNaN(valueA)) return -1;
if (!isNaN(valueB)) return 1;
return a - b;
})
.map((section) => ({
id: section,
inputs: settingsSections[section].inputs,