Now it doens't run if there are no table rows
Final table order now matches original order (minus the swapped rows for hierarchy)
removed unused code
Highlight any column that has the username of the logged in user