redone sorting with JavaScript instead of at the back; added Tooltips