how to retain inline styles when swapped within the list

how to retain inline styles when swapped within the list

Hi ,

Please find the below fiddle where i am swapping within the list and everything is working fine, but i see when the texts are swapped the inline styles are being deleted.

Can anyone help me how can i retain the inline styles even after swapping .

Any help will be appreciated.


Thanks in Advance,
Ravindra