Amended logger

Displays tables in sorted order