Added sorting on the table output for DB parsing