How does the sortable li position is calculated?

How does the sortable li position is calculated?

Hello guys,

I am trying to figure out how does jQuery sortable works internally?

I know that while sorting it creates an ui-sortable-helper div and it plays around with its position. 
But I am not able to figure out how does the sortable element takes the position of ui-sortable-helper div, without changing its left/top position.

Thanks