# Sortable.create

**URL:** <https://www.ruby-forum.com/t/sortable-create/174811>\
**Category:** Rails\
**Created:** [September 2, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/sortable-create/174811 "2009-09-02T17:00:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinathbtech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7bcc69/32.png) [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Post date:** [September 2, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/sortable-create/174811/1 "2009-09-02T17:00:40Z")

</div>

Hi,

I developed same feature using the Demo Application and working great  
for me too

[http://webdesign.torn.be/tutorials/javascript/prototype/sort-images-with-prototype/demo/](http://webdesign.torn.be/tutorials/javascript/prototype/sort-images-with-prototype/demo/)

but when i add a option called ghosting: true in  
Sortable.create(‘sortlist’, { tag: ‘img’, overlap:‘horizontal’,  
constraint:false, ghosting:true,

the sorting is not smooth and the images are not adjusting /moving as i  
drag the image on other like previous .

How can we achieve the same functionality by using ghosting: true and  
moving of images while dragging …

Thanks in advance …  
Sri…
