initial sorting for sortTo()
fix the sorting algorithm for live-updating elements
0.6.1