Added deck sorting by ID

Also deck table header is persisted now.