Put syntax modes in a table layout, sort numbers in rowspans.

Implements FS#2516