Allows sorting of tables within markdown

fixes #1456