Sort table list

Closes #27