Added sorting before auto-assign

Moved the sort of the table to before the calling of tableParser to work
better with out auto-fill algorithm