change how descending is applied
custom default direction using data-default-direction
made sort stable
inline sorted and move sortedDirection as each is used only in one place
Merge branch 'custom-default-direction-and-stable-sort'