Yes basically data is in an array (comes out from a db) on the mobile,
reordered by the user, and then resaved and passed to an iot device.
At the moment I had changed my first test in:
$$(’#fab-save-manage-curves’).on(‘click’, function () {
var curves = [], counter = 0;
$$(’#list-manage-curves ul li’).each(function () {
counter++;
var curveObj = { id: $$(this).attr(‘data-row-id’), sort: counter };
curves.push(curveObj);
});
updateCurvesAfterSortOrder(curves);
});
Since the amount of data is quite small I was looking at the moment only for a quick test solution
and I was curious if the framework had like some sort of method that returned the sorted array.
Thanks Vladimir for pointing my attention also to the splice() method of arrays.
and really really impressed of the job you have done on framework7 (that I have discovered only a couple of weeks ago ), super !!!