lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On 29/07/14 12:06 PM, Benoit Germain wrote:
Unfortunately I can't sort something like this (my data is more complex than that of course, I have 600 lines of simular Lua code per settings file):

                ["pushForceCurve"] =
                {
                    ["param1"] = -4,
                    ["param3"] = 0.502515,
                    ["param2"] = 2
                    ["centerOfMassOffset"] =
                    {
                       ["x"] = 0,
                       ["y"] = 0
                    },
                },


{[1]=
{"pushForceCurve",{
    [1]={"centerOfMassOffset",{
        [1]={"x",0},
        [2]={"y",0}
    }},
    [2]={"param1",-4},
    [3]={"param2",2},
    [4]={"param3",0.502515}
}}
}


2014-07-29 16:39 GMT+02:00 Alex Queiroz <asandroq@gmail.com>:
Hallo,

On Tue, Jul 29, 2014 at 4:33 PM, Benoit Germain <bnt.germain@gmail.com> wrote:

Any thought about this?


Can't you sort the data?

Cheers,



--
Benoit.