made sort stable
inline sorted and move sortedDirection as each is used only in one place
Merge branch 'stable-sort'
Merge branch 'custom-default-direction'

Conflicts:
	js/sortable.min.js