fixed sorting for tables. fixed repo update script. ready for real-world testing!