Fix typo
Implement sort_id with a class field
Port to GtkStack
Port to resources and templates