$(“.selector”).sortable({axis:’y’});
从文档:
If defined,the items can be dragged only horizontally or vertically. Possible values:’x’,‘y’.