Swapping items with vertical sorting in a Display Grid
Good day All,
My question is drawn-up from the demo example on the jquery UI website: Display grid ; when sorting horizontally,the items tend to swap places but when one gets to sort vertically,it tends to displace the item it tends to sort.How can i create the swapping effect for vertical sorting just as it is for horizontal sorting.
To better understand what i mean,i want a situation where i swap places for items '8' and '12' on the demo above and not displacing it.And i noticed a similar effect when i implemented a similar idea using drag/drop.
Thank you