Jquery UI sortable problem?

Jquery UI sortable problem?

Hi, I am developing a web application where users can drag, drop, and sort the widgets. I didn't make any columns on the dashboard as every widget has different width and height, so due to this reason the horizontal sorting is working but the vertical is not working using jquery UI Sortable. I have tried various methods but no success. I know if i make columns and place the widget in different columns then vertical sorting will also work, but due to the requirement of my client, I can't give the same width to all of the widgets. So I have to enable both the sorting in current scenario.

If anybody can come up with some solution, i will really appreciate.

Thanks