When elements are moved up and down, the <li> elements are rearranged visually in the DOM and not in model. But if you want to order the dataSource model value, based on every reorder then you can achieve this in sample side itself.
Please find the modified demo for your reference below:
If the shared details and sample doesn’t meet your requirement, please give us more information to provide an alternative solution.
Regards,
Arun P.